Maths Olympiad Prep

Library / /25 of 73

Combinatorics Difficulty 5.4 AIME, harder Prove it Brazil

A positive integer nn is clowny if the number obtained by reversing its digits is greater than nn. For example, 20092009 is clowny because 90029002 is greater than 20092009; however, 20102010 is not clowny because 0102=1020102 = 102 is less than 20102010 and 34433443 is not clowny because it is equal to the number obtained by reversing its digits. How many four-digit numbers are clowny?

Solution

Let (abcd)(abcd) be a four-digit number aa, bb, cc, dd being its digits. So a number is clowny if and only if (dcba)>(abcd)(dcba) > (abcd). This means that either d>ad > a or d=ad = a and c>bc > b. Notice that we cannot have both d=ad = a and b=cb = c because it would imply (dcba)=(abcd)(dcba) = (abcd).

There are 982=36\frac{9 \cdot 8}{2} = 36 choices in the first case (recall that d>a>0d > a > 0) and 91092=4059 \cdot \frac{10 \cdot 9}{2} = 405 choices in the second case (99 choices for a=da = d and 1092\frac{10 \cdot 9}{2} for c>b0c > b \ge 0). So there are 36+405=44136 + 405 = 441 four-digit clowny numbers.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.