Skip to content

Counting in Geometry and Grids

11 lessons · 13 questions · 5 PYQs · ~50 s per question

The idea

Geometric figures are chosen sets of points or lines: a triangle is 33 non-collinear points, a line is 22 points, a parallelogram is 2+22+2 lines from two families. Count the choices and remove the degenerate ones.

Textbook vs exam method

Exam method

  1. Collinear points. triangles (n3)−(m3)\binom{n}{3}-\binom{m}{3}; lines (n2)−(m2)+1\binom{n}{2}-\binom{m}{2}+1.
  2. Grids. lattice paths (m+nm)\binom{m+n}{m}; with a blocked point subtract the paths through it.
  3. Stairs. write the Fibonacci list 1,2,3,5,8,…1,2,3,5,8,\dots up to the required step.

Worked examples

Example 1

(d1, Indore 2023 Q20) 88 rooks on a chessboard, none attacking

Example 2

(d1, Indore 2022 SA Q4) triangles from 77 and 55 points on two parallel lines

Example 3

(d1, Indore 2021 Q24) lines from 1010 points, 55 collinear

Example 4

(d2, Indore 2021 SA Q4) 55 parallel lines and nn perpendicular ones make 360360 rectangles

Example 5

(d2, Indore 2023 Q33) a rabbit climbing 1010 steps by ones and twos

Traps

  • The collinear line not added back; grid lines vs squares; the recursion read one step off.

Formulas

Triangles and lines with collinear points

triangles=(n3)−(m3),lines=(n2)−(m2)+1\text{triangles}=\binom{n}{3}-\binom{m}{3},\qquad \text{lines}=\binom{n}{2}-\binom{m}{2}+1

m of the n points are collinear; the collinear set gives no triangle and only one line (Indore 2021: 36 lines).
Parallelograms from two families of lines

parallelograms=(m2)(n2)\text{parallelograms}=\binom{m}{2}\binom{n}{2}

Two lines from each family; perpendicular families give rectangles (Indore 2021 SA: n = 9).
Diagonals of a polygon

diagonals of an n-gon=n(n−3)2\text{diagonals of an } n\text{-gon}=\dfrac{n(n-3)}{2}

Pairs of vertices minus the sides.
Shortest paths on a grid

shortest grid paths=(m+nm)\text{shortest grid paths}=\binom{m+n}{m}

Arrange m east moves and n north moves; through a point = product of the two legs.
Climbing stairs one or two at a time

f(n)=f(n−1)+f(n−2)f(n)=f(n-1)+f(n-2)

The last move is a single or a double step (Indore 2023: 10 steps -> 89).

In the exam

Shortcuts
  • Points on two parallel lines with aa and bb points: triangles (a2)b+a(b2)\binom{a}{2}b+a\binom{b}{2} (Indore 2022 SA: 175175).
  • Squares in an a×ba\times b grid: ∑(a−i+1)(b−i+1)\sum(a-i+1)(b-i+1); rectangles: (a+12)(b+12)\binom{a+1}{2}\binom{b+1}{2} (chessboard: 204204 and 12961296).
  • nn non-attacking rooks on an n×nn\times n board: n!n! (Indore 2023 Q20).
  • Maximum intersections: line-line 11, line-circle 22, circle-circle 22.
  • Triangles from polygon vertices: two sides common nn, exactly one n(n−4)n(n-4), none (n3)−n−n(n−4)\binom{n}{3}-n-n(n-4).
~50 s per question at exam speed
When to skip: Most items take 30-60 s. Regions, avoided grid points and polygon-side conditions take longer - second pass.

Before this

What the exams ask here

  • triangles from points on two parallel lines
  • rectangles from m x n grid
  • ways to climb stairs 1 or 2 steps
  • non-attacking rooks
Next sub-topicTournaments and Handshakes

Practise this free. Every mistake is saved and comes back until you fix it.

Start free