OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MAPLE
P:=proc(n) local i, t; t:=[0, 1]; for i from 1 to n do t:=[op(t), t[-2]+t[-1]+convert(convert(t[-2], base, 10), `+`)+convert(convert(t[-1], base, 10), `+`)]; od; print(op(t)); end: P(34); # Paolo P. Lava, Jun 25 2024
MATHEMATICA
nxt[{a_, b_}]:=a+b+Total[IntegerDigits[a]]+Total[IntegerDigits[b]]; Transpose[NestList[{Last[#], nxt[#]}&, {0, 1}, 40]][[1]] (* Harvey P. Dale, Oct 31 2011 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, May 09 2008
STATUS
approved