login
A140132
a(n) = Sum_digits{a(n-1)+a(n-2)+Sum_digits[a(n-1)]+Sum_digits[a(n-2)]}, with a(0)=0 and a(1)=1.
1
0, 1, 2, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7
OFFSET
0,3
COMMENTS
After the first three terms the sequence is periodic: 6,7,8,3,4,5,9,10,11.
MAPLE
P:=proc(n) local a, i, t; t:=[0, 1]; for i from 1 to n do
a:=t[-2]+t[-1]+convert(convert(t[-2], base, 10), `+`)+convert(convert(t[-1], base, 10), `+`);
t:=[op(t), convert(convert(a, base, 10), `+`)]; od; print(op(t)); end: P(93); # Paolo P. Lava, Jun 25 2024
KEYWORD
easy,nonn,base
AUTHOR
STATUS
approved