Question 5
Number theory BDMO 2021 National
For a positive integer , let be the sum of its digits. For a positive integer , consider the sequence , , , . At some point, this sequence will eventually be a constant. Denote that constant by . Find the number of positive integers such that .