OFFSET
1,2
LINKS
FORMULA
a(n+1) = a(n) + (sum of digits of a(n)) + 1.
EXAMPLE
a(1)=1, a(2)=1+1+1=3, a(3)=3+3+1=7, a(4)=7+7+1=15, a(5)=15+1+5+1=22, a(6)=22+2+2+1=27, ...
MATHEMATICA
a[n_] := a[n] = a[n - 1] + 1 + Plus @@ IntegerDigits@a[n - 1]; a[1] = 1; Array[a, 50] (* Robert G. Wilson v, Aug 01 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Dave Durgin, Sep 25 2013
STATUS
approved