Explanation
Label every point with a letter
Never count by eye. Label every corner point with a letter, then count systematically.
Label every point with a letter
Triangle with lines from the apex to the base
A triangle split by lines from the top to the base: if the base is cut into n parts, there are n times n plus one over two triangles.
Triangle with lines from the apex to the base: n(n+1)/2
Squares in an n × n grid
In an n by n grid, count squares of each size: n squared small ones, then bigger ones. Total: one squared plus two squared up to n squared.
Squares in an n × n grid: 1² + 2² + … + n²
3 × 3 grid
A three by three grid: nine small, four of size two, one of size three. Fourteen.
3 × 3 grid: 9 + 4 + 1 = 14
Count by size, smallest first
Count by size: smallest first, then combinations of two, then three. Tick as you go.
Count by size, smallest first
Worked example
A 4 × 4 grid: 16 + 9 + 4 + 1 = 30 squares.