Problem:
Let be a function on nonnegative integers such that and
for all integers . Compute the sum of all nonnegative integers such that .
Solution
Solution:
Let denote the number in base . Observe that if , then
and
Thus, is simply with all 2's replaced with 1's. We also see that . Thus, if and only if for digits . Each of , and takes on each possible value exactly 4 times, so the sum is
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.