Maths Olympiad Prep

Library / /15 of 86

Number theory Difficulty 5.0 AIME, harder Prove it Estonia

Does there exist a positive integer nn such that across all representations n=abn = ab, the digits 0,1,,90, 1, \dots, 9 are all present as the final digit of aba^b at least once?

Solution

Answer: No.

If nn is odd, both aa and bb will always be odd, but then aba^b will never end with a 00. If nn is even, then aa or bb will be even, so aba^b will be even or a perfect square. In either case, it will never end in a 77.

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 and solution reproduced as published; topic and difficulty added by this site.