MathDB
CNCM Online R1P3

Source:

September 2, 2020

Problem Statement

Define S(N)S(N) to be the sum of the digits of NN when it is written in base 1010, and take Sk(N)=S(S((N)))S^k(N) = S(S(\dots(N)\dots)) with kk applications of SS. The stability of a number NN is defined to be the smallest positive integer KK where SK(N)=SK+1(N)=SK+2(N)=S^K(N) = S^{K+1}(N) = S^{K+2}(N) = \dots. Let T3T_3 be the set of all natural numbers with stability 33. Compute the sum of the two least entries of T3T_3.
Proposed by Albert Wang (awang11)