A103830 a(1) = 2; a(n+1) = smallest number > a(n) whose sum of digits is a(n).
2, 11, 29, 2999
Offset: 1
Crossrefs
Differs from A062802 starting at a(5).
Formula
For n>=3, a(n) = (a(n-1) mod 9 + 1)*10^floor(a(n-1)/9) - 1. - Max Alekseyev, Aug 13 2015
For n>=3, a(n) = 3*10^b(n) - 1, where b(3)=1 and for n>=4, b(n)=(10^b(n-1)-1)/3. In other words, decimal representation of b(n) is formed by digit 3 repeated b(n-1) times. - Max Alekseyev, Aug 13 2015
Comments