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 repeatedly until a single base 12 digit remains. Find this digit.
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 repeatedly until a single base 12 digit remains. Find this digit.
Solution:
For a positive integer , let be the sum of digits when is expressed in base 12. We claim that for all positive integers . Indeed, if with each an integer between 0 and 11, inclusive, because , reducing modulo 11 gives exactly . Thus, our answer is congruent to 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, , and also observe that because and . Thus, , 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.)