login
A075543
a(n) = a(n-1) + digit sum(n + 2) with a(0) = 2.
1
2, 5, 9, 14, 20, 27, 35, 44, 45, 47, 50, 54, 59, 65, 72, 80, 89, 99, 101, 104, 108, 113, 119, 126, 134, 143, 153, 164, 167, 171, 176, 182, 189, 197, 206, 216, 227, 239, 243, 248, 254, 261, 269, 278, 288, 299, 311, 324, 329, 335, 342, 350, 359, 369, 380, 392
OFFSET
0,1
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
Sequence in context: A132296 A275586 A333449 * A132315 A079509 A132336
KEYWORD
nonn,base
AUTHOR
Jon Perry, Oct 11 2002
EXTENSIONS
Definition corrected by Georg Fischer, May 22 2024
STATUS
approved