2021 National · Primary 5/12 বাং

Question 5

Number theory BDMO 2021 National

For a positive integer nn, let g(n)g(n) be the sum of its digits. For a positive integer xx, consider the sequence g(x)g(x), g(g(x))g(g(x)), g(g(g(x)))g(g(g(x))), ⋯\cdots. At some point, this sequence will eventually be a constant. Denote that constant by f(x)f(x). Find the number of positive integers a≤2021a \le 2021 such that f(a)=9f(a) = 9.

Worked it out?

This paper's answer key isn't in yet, so mark it yourself.

Log in to save your progress.
Log in to report a mistake