Operations on positive integers
Source: Mexican Math Olympiad 2012 - problem 4
December 1, 2013
inequalitiescombinatorics unsolvedcombinatorics
Problem Statement
The following process is applied to each positive integer: the sum of its digits is subtracted from the number, and the result is divided by . For example, the result of the process applied to is , since Applying the process twice to the result is , applied three times the result is , and applying it four times the result is . When the process is applied one or more times to an integer , the result is eventually . The number obtained before obtaining is called the house of .How many integers less than share the same house as ?