There are 50 rods of lengths . How many ways are there to pick three of these rods to form a triangle?
HongKong -23 IMO Selection Tests, 2022
Solution
The answer is minus the number of choices of three rods that violate the triangle inequality. The number to be subtracted is the size of the set
Note that for , is an even number between and (inclusive). For each such even number, we can easily count the number of such pairs , and for each such we can easily count the number of choices of for which .
As an example, if we fix , there would be choices for , namely, , , , and . For each of these pairs of , there are choices of for which , namely, .
In the same way, we can see that for each even number where , there would be choices of for which , and for each such there would be choices of for which . This can be summarized by the following table:
| Value of | Value of | No. of choices of | No. of choices of |
|---|---|---|---|
| 2 | 4 | ||
| 3 | 6 | ||
| 4 | 8 | ||
| 5 | 10 | ||
| ... | ... | ... | ... |
| 48 | 96 | ||
| 49 | 98 |
From the table, we see that
and so the answer is
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.