Browse · MATH
Printjmc
number theory senior
Problem
For each positive integer , let be the sum of the digits in the base-four representation of and let be the sum of the digits in the base-eight representation of . For example, , and . Let be the least value of such that the base-sixteen representation of cannot be expressed using only the digits through . Find the remainder when is divided by .
Solution
Let's work backwards. The minimum base-sixteen representation of that cannot be expressed using only the digits through is , which is equal to in base 10. Thus, the sum of the digits of the base-eight representation of the sum of the digits of is . The minimum value for which this is achieved is . We have that . Thus, the sum of the digits of the base-four representation of is . The minimum value for which this is achieved is . We just need this value in base 10 modulo 1000. We get . Taking this value modulo , we get the final answer of .
Final answer
151