OFFSET
0,1
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
EXAMPLE
a(1) = a(0) + digit sum(1 + 2) = 2 + 3 = 5.
MATHEMATICA
Block[{k = 2}, NestList[# + DigitSum[++k] &, 2, 100]] (* Paolo Xausa, May 24 2024 *)
PROG
(PARI) c=0; for (n=2, 100, c=c+sumdigits(n); print1(c, ", "))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jon Perry, Oct 11 2002
EXTENSIONS
Definition corrected by Georg Fischer, May 22 2024
STATUS
approved