How many triangles with positive area have all their vertices at points in the coordinate plane, where and are integers between and , inclusive?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
Count all C(25,3) triples and subtract collinear ones, organized by the line's direction: rows, columns, both diagonal directions, and slopes of plus or minus 1/2 and 2.
Solution
There are lattice points, so ways to choose three of them. A choice fails to be a triangle exactly when the three points are collinear, so count collinear triples and subtract.
A line through the grid containing of the points contributes collinear triples. Go through the possible directions.
Horizontal: rows of points, . Vertical: likewise .
Slope : for each sign there is one diagonal with points, two with , and two with (shorter diagonals hold fewer than points). Per sign: . Both signs: .
Slope and : a line of slope through lattice points steps right and up, so it can hold at most grid points, e.g. . For slope the three points have and with : lines. By symmetry (reflect and swap axes) each of the four slopes gives lines, for collinear triples.
Any other slope (such as or ) would need a horizontal or vertical span of at least to fit three lattice points, impossible here.
Collinear triples: . Triangles: .
The answer is .
Why this works
"Triangles with positive area" is "three points minus degenerate triples," so complementary counting is the natural frame. The hard part is exhaustively listing the lines with at least three lattice points; organizing by slope, and checking that a slope in lowest terms needs a span of (and ) to hold three points, guarantees nothing is missed.
The trap
Forgetting the collinear triples on lines of slope 2 or 1/2 (12 of them), which gives 2160, choice (C).
Common mistakes
- Forgetting the collinear triples on lines of slope 2 or 1/2 (12 of them), which gives 2160, choice (C).
- Counting only the two main diagonals and missing the shorter diagonals with or points.
Techniques
Split into exhaustive cases and handle each · Count the complement and subtract from the total