Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 07 / 09Permutations and Combinations

Counting in Geometry and Shortest Lattice Paths

Counting lines, triangles and diagonals from points with and without collinear sets, intersections of lines and circles, rectangles and squares on a grid, and the number of shortest paths on a lattice as a combination.

Figure 1
Many JEE counting problems are geometric. Each reduces to choosing points or lines, with corrections for collinearity or parallelism. Points and lines. With nn points, no three collinear: the number of lines is (n2)\binom{n}{2} (each line is fixed by 22 points), and the number of triangles is (n3)\binom{n}{3}. If mm of the points are collinear (and otherwise no three are collinear), those mm points give only one line instead of (m2)\binom{m}{2}, and give no triangles. So lines =(n2)−(m2)+1= \binom{n}{2} - \binom{m}{2} + 1 and triangles =(n3)−(m3)= \binom{n}{3} - \binom{m}{3}. Polygons. A convex polygon with nn vertices has (n2)−n=n(n−3)2\binom{n}{2} - n = \frac{n(n - 3)}{2} diagonals (all segments minus the sides). If no three diagonals are concurrent inside, the number of interior intersection points of diagonals is (n4)\binom{n}{4}: each set of 44 vertices forms a convex quadrilateral whose two diagonals cross exactly once. Triangles formed by the vertices: (n3)\binom{n}{3}. Triangles with no side in common with the polygon: (n3)−n−n(n−4)=n(n−4)(n−5)6\binom{n}{3} - n - n(n - 4) = \frac{n(n - 4)(n - 5)}{6}, obtained by subtracting triangles with two polygon sides (nn of them) and with exactly one polygon side (n(n−4)n(n - 4)). Intersections. nn lines in general position (no two parallel, no three concurrent) meet in (n2)\binom{n}{2} points and divide the plane into 1+n+(n2)1 + n + \binom{n}{2} regions. nn circles, each pair meeting in two points and no three through a point, meet in 2(n2)2\binom{n}{2} points. mm lines and nn circles in general position meet in at most (m2)+2(n2)+2mn\binom{m}{2} + 2\binom{n}{2} + 2mn points. Parallelograms and rectangles. If one family of mm parallel lines crosses another family of nn parallel lines, every parallelogram is formed by choosing 22 lines from each family: (m2)(n2)\binom{m}{2}\binom{n}{2}. On an m×nm \times n grid of unit squares (with m+1m + 1 vertical and n+1n + 1 horizontal lines), the number of rectangles is (m+12)(n+12)\binom{m + 1}{2}\binom{n + 1}{2}. The number of squares on an n×nn \times n board is 12+22+⋯+n2=n(n+1)(2n+1)61^{2} + 2^{2} + \cdots + n^{2} = \frac{n(n + 1)(2n + 1)}{6} (count by side length: there are (n−k+1)2(n - k + 1)^{2} squares of side kk). An 8×88 \times 8 chessboard has 204204 squares and 12961296 rectangles. Shortest lattice paths. To go from (0,0)(0, 0) to (m,n)(m, n) moving only one unit right (R) or up (U) at a time, every shortest path uses exactly mm R-steps and nn U-steps in some order. So the number of paths is the number of arrangements of mm R's and nn U's: (m+nn)=(m+n)!m! n!\binom{m + n}{n} = \frac{(m + n)!}{m!\,n!}. The figure shows one of the (83)=56\binom{8}{3} = 56 paths from (0,0)(0, 0) to (5,3)(5, 3). Paths through a particular point PP: multiply the counts from the start to PP and from PP to the end. Paths avoiding a point or a blocked segment: subtract the paths through it. In three dimensions, paths from (0,0,0)(0, 0, 0) to (a,b,c)(a, b, c) number (a+b+c)!a! b! c!\frac{(a + b + c)!}{a!\,b!\,c!}. Key Takeaways: - nn points, mm collinear: lines (n2)−(m2)+1\binom{n}{2} - \binom{m}{2} + 1; triangles (n3)−(m3)\binom{n}{3} - \binom{m}{3}. - Diagonals of an nn-gon: n(n−3)2\frac{n(n - 3)}{2}; interior intersections of diagonals: (n4)\binom{n}{4}. - nn general lines: (n2)\binom{n}{2} intersection points, 1+n+(n2)1 + n + \binom{n}{2} regions. - Parallelograms from mm and nn parallel lines: (m2)(n2)\binom{m}{2}\binom{n}{2}. - Squares on an n×nn \times n board: ∑k2\sum k^{2}; rectangles: (n+12)2\binom{n + 1}{2}^{2}. - Shortest lattice paths to (m,n)(m, n): (m+nm)\binom{m + n}{m}. - Pitfall: counting triangles from collinear points, which are degenerate. Brain-Teaser 1: There are 1212 points in a plane, of which exactly 55 are collinear. How many distinct lines and triangles do they determine? How many quadrilaterals (no three vertices collinear)? Solution: Lines: (122)−(52)+1=66−10+1=57\binom{12}{2} - \binom{5}{2} + 1 = 66 - 10 + 1 = 57. Triangles: (123)−(53)=220−10=210\binom{12}{3} - \binom{5}{3} = 220 - 10 = 210. For quadrilaterals, choose 44 points with at most 22 from the collinear set: none of the 55: (74)=35\binom{7}{4} = 35; one: 5(73)=1755\binom{7}{3} = 175; two: (52)(72)=210\binom{5}{2}\binom{7}{2} = 210. Total 420420. (Here a quadrilateral is taken to be fixed by its 44 vertices, as is usual in such questions.) Organising by how many points come from the special collinear set avoids every degenerate case. Brain-Teaser 2: How many shortest paths go from (0,0)(0, 0) to (6,4)(6, 4) that pass through (3,2)(3, 2)? That avoid (3,2)(3, 2)? Solution: All paths: (104)=210\binom{10}{4} = 210. Through (3,2)(3, 2): (52)\binom{5}{2} from the start to (3,2)(3, 2) and (52)\binom{5}{2} from (3,2)(3, 2) to (6,4)(6, 4), giving 10×10=10010 \times 10 = 100. Avoiding it: 210−100=110210 - 100 = 110. The multiplication principle applies at the checkpoint because the two halves of the path are chosen independently. Brain-Teaser 3: How many triangles can be formed from the vertices of a regular 1212-gon? How many of them are right-angled? How many share no side with the polygon? Solution: All triangles: (123)=220\binom{12}{3} = 220. A triangle inscribed in a circle is right-angled iff one side is a diameter. The 1212-gon has 66 diameters, and each can be completed with any of the other 1010 vertices: 6060 right triangles. Triangles with no side in common: 12×8×76=112\frac{12 \times 8 \times 7}{6} = 112. Check: triangles with two polygon sides number 1212 (three consecutive vertices), and with exactly one side number 12×8=9612 \times 8 = 96; 220−12−96=112220 - 12 - 96 = 112. The circle geometry (Thales' theorem) converts 'right-angled' into 'contains a diameter', which is easy to count.