Practice problem
Other Integer Bases (Binary, Ternary, Etc.)
(I am pretty sure this is an AMC or AIME problem, but I can't find the original source.)
Consider the following function, defined for For how many values of does ?
(As a bonus, can you find all of the values such that ?)