Maths Olympiad Prep

Library / /577 of 740

, 2012

Number theory Difficulty 5.3 AIME, harder Prove it United States

Problem:

Given any positive integer, we can write the integer in base 12 and add together the digits of its base 12 representation. We perform this operation on the number 76543217^{6^{5^{4^{3^{2^{1}}}}}} repeatedly until a single base 12 digit remains. Find this digit.

Solution

Solution:

For a positive integer nn, let s(n)s(n) be the sum of digits when nn is expressed in base 12. We claim that s(n)n(mod11)s(n) \equiv n \pmod{11} for all positive integers nn. Indeed, if n=dk12k+dk112k1++d0n = d_{k} 12^{k} + d_{k-1} 12^{k-1} + \cdots + d_{0} with each did_{i} an integer between 0 and 11, inclusive, because 121(mod11)12 \equiv 1 \pmod{11}, reducing modulo 11 gives exactly s(n)s(n). Thus, our answer is congruent to N=7654321N = 7^{6^{5^{4^{3^{2^{1}}}}}} modulo 11, and furthermore must be a one-digit integer in base 12; these two conditions uniquely determine the answer.

By Fermat's Little Theorem, 7101(mod11)7^{10} \equiv 1 \pmod{11}, and also observe that 6543216(mod10)6^{5^{4^{3^{2^{1}}}}} \equiv 6 \pmod{10} because 60(mod2)6 \cong 0 \pmod{2} and 61(mod5)6 \cong 1 \pmod{5}. Thus, N763432224(mod11)N \equiv 7^{6} \equiv 343^{2} \equiv 2^{2} \equiv 4 \pmod{11}, which is our answer. (Additionally, we note that this process of writing the number in base twelve and summing the digits must eventually terminate because the value decreases after each step.)

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.