OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MAPLE
P:=proc(n) local a, i, k, w; a:=1; print(a); for i from 1 by 1 to n do w:=0; k:=a; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; k:=i^w; w:=0; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; a:=w; print(w); od; end: P(100);
MATHEMATICA
nxt[{n_, a_}]:={n+1, Total[IntegerDigits[(n+1)^Total[IntegerDigits[a]]]]}; NestList[nxt, {0, 1}, 70][[;; , 2]] (* Harvey P. Dale, Nov 03 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Dec 03 2007
STATUS
approved