UPSC CSAT 2023 Q30: Triangles from Points on a Square's Sides — Solved
ABCD is a square. One point on each of AB and CD; and two distinct points on each of BC and DA are chosen. How many distinct triangles can be drawn using any three points as vertices out of these six points?
- 16
- 18
- 20
- 24
Answer: (c) 20
Solution
- List the points. Six points in total: 1 on AB, 1 on CD, 2 on BC, 2 on DA. Call them P (on AB), Q (on CD), R1 and R2 (on BC), S1 and S2 (on DA).
- Count every choice of 3 points. Choosing 3 points out of 6 gives C(6,3) = (6 × 5 × 4) ÷ (3 × 2 × 1) = 120 ÷ 6 = 20 selections.
- Find the selections that do not form a triangle. Three points make a triangle unless they lie on one straight line. So we only need to remove the collinear triples.
-
Check each side. - AB has 1 chosen point, so it cannot hold 3. - CD has 1 chosen point, so it cannot hold 3. - BC has 2 chosen points, so it cannot hold 3. - DA has 2 chosen points, so it cannot hold 3. A collinear triple would need 3 points on one side. No side has 3, so no side gives one.
-
Check points taken from different sides. All six points lie on the boundary of the square, which is a convex shape. A straight line that does not run along a side meets the boundary of a convex shape at no more than 2 points. So three points taken from different sides can never be in a line.
- Subtract. Collinear triples = 0. Triangles = 20 − 0 = 20.
- Note on the trap. Two points on the same side are collinear, but a pair is not a problem. One more point from another side always lies off that line. So triangles such as R1, R2, P are real triangles and stay in the count.
Answer: 20 triangles.
Option-wise explanation
- a: incorrect — 16 = 20 − 4. It would need four collinear triples, and there are none, because no side has three chosen points. The trap is removing triangles that have two vertices on the same side, but those triangles are valid.
- b: incorrect — 18 = 20 − 2. This comes from treating the two pairs (on BC and on DA) as if each one spoils a triangle. Two points on a side are collinear, but a third point from any other side lies off that line, so nothing should be subtracted.
- c: correct — C(6,3) = 20, and no three of the six points are collinear: no side has three points, and a line can cut a square's boundary at only two points. So all 20 selections are triangles.
- d: incorrect — 24 is more than C(6,3) = 20, which is the total number of 3-point selections from 6 points, so no count of triangles can reach it. It comes from overcounting, for example multiplying side-by-side choices and counting the same triangle more than once.
How to eliminate
Ceiling check first. Six points give at most C(6,3) = 20 triangles. That rules out 24 at once. The count can drop below 20 only if some three points are collinear. That needs three points on one side, and the maximum here is two. So nothing is subtracted, the answer is the ceiling, and 16 and 18 fall away. Both 16 and 18 are bait for students who subtract when there is nothing to subtract. About 20–30 seconds. Attempt it on the first pass.
Know more
Triangles from a set of points
Triangles = C(n,3) − (sum of C(k,3) over every line that holds k ≥ 3 of the points).
Any 3 points that are not in a line make exactly one triangle. So count all 3-point choices and remove the choices that lie on a line.
On a square, or any convex figure, collinear triples can come only from one side. A line that is not a side cuts the boundary at two points at most. So check each side alone: a side with k ≥ 3 points removes C(k,3).
| k | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|
| C(k,3) | 0 | 1 | 4 | 10 | 20 |
A side with 2 or fewer points removes nothing.
Worked variant. Take 3 points on AB, 2 on BC and 4 on CD, none of them at a corner. Total n = 9.
- C(9,3) = 84
- AB removes C(3,3) = 1
- BC removes 0
- CD removes C(4,3) = 4
- Triangles = 84 − 1 − 4 = 79
Watch out. If a corner of the square is one of the chosen points, it lies on two sides. Count it on both lines when you work out k.