OFFSET
1,1
COMMENTS
Main diagonal of square array A(n, k), where A(n, k) gives the result of k applications of the map x -> x + sum of base-100 digits of x, starting at n. - Felix Fröhlich, Sep 12 2017
EXAMPLE
n=6: 6+6=12, 12+12=24, 24+24=48, 48+48=96, 96+96=192, 192+92+(0)1=285. After 6 iterations you get 285, so a(6)=285.
MATHEMATICA
Table[Nest[# + Total@ IntegerDigits[#, 100] &, n, n], {n, 44}] (* Michael De Vlieger, Sep 11 2017 *)
PROG
(PARI) a(n) = my(x=n); for (k=1, n, x += vecsum(digits(x, 100))); x; \\ Michel Marcus, Sep 12 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Peter Weiss, Sep 11 2017
STATUS
approved