OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
FORMULA
a(n+1) = A062028(n) + 1 for n >= 1. - Michel Marcus, Aug 02 2018
EXAMPLE
Writing ds() for the sum of digits (A007953),
a(8) = 8 + ds(7) = 8 + 7 = 15,
a(15) = 15 + ds(14) = 15 + 5 = 20,
a(26) = 26 + ds(25) = 26 + 7 = 33.
MATHEMATICA
Table[n+Total[IntegerDigits[n-1]], {n, 80}] (* Harvey P. Dale, Dec 08 2012 *)
PROG
(PARI) a(n) = n + sumdigits(n-1); \\ Michel Marcus, Aug 02 2018
(Magma) [n + &+Intseq(n-1): n in [1..80]]; // Vincenzo Librandi, Nov 09 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, May 30 2009
STATUS
approved