OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
nxt[n_]:=Module[{t=Total[n]}, {t, Total[IntegerDigits[t]]}]; Flatten[ NestList[ nxt, {10, 1}, 35]] (* Harvey P. Dale, Mar 29 2011 *)
PROG
(Python)
def next2(n): sd = sum(map(int, str(n))); return [sd, n+sd]
def aupton(terms):
alst = [10]
while len(alst) < terms: alst.extend(next2(alst[-1]))
return alst[:terms]
print(aupton(66)) # Michael S. Branicky, Oct 01 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, May 26 2007
EXTENSIONS
More terms from R. J. Mathar, Jun 14 2007
STATUS
approved