Digit Sums Across Bases

Problem

For a positive integer nn, let f(n)f(n) be the digit sum of nn written in base 44, and g(n)g(n) the digit sum of f(n)f(n) written in base 88. (Example: f(2020)=10=12(8)f(2020) = 10 = 12_{(8)}, so g(2020)=3g(2020) = 3.) Let NN be the least nn for which the base-1616 representation of g(n)g(n) requires a digit beyond 0099. Find Nmod1000N \bmod 1000.

Answer

Solution

Difficulty8/10
Topicsnumber theory, Modular Arithmetic, Number Bases

Whiteboard

Your sketch is saved only in this browser. To share it, export your drawing as an image (whiteboard menu → Export as → PNG), then upload that image in the comments below.

Discussion

Ask questions, share alternate solutions, and use LaTeX freely.

0 comments
Log in to join the discussion.

No comments yet.