A010075 a(n) = sum of base-8 digits of a(n-1) + sum of base-8 digits of a(n-2).
0, 1, 1, 2, 3, 5, 8, 6, 7, 13, 13, 12, 11, 9, 6, 8, 7, 8, 8, 2, 3, 5, 8, 6, 7, 13, 13, 12, 11, 9, 6, 8, 7, 8, 8, 2, 3, 5, 8, 6, 7, 13, 13, 12, 11, 9, 6, 8, 7, 8, 8, 2, 3, 5, 8, 6, 7, 13, 13, 12, 11, 9, 6, 8, 7, 8, 8, 2, 3, 5, 8, 6, 7, 13, 13, 12, 11, 9, 6, 8, 7, 8, 8, 2, 3, 5, 8, 6, 7, 13, 13, 12, 11, 9, 6, 8
Offset: 0
Links
Crossrefs
Programs
-
Mathematica
nxt[{a_,b_}]:={b,Total[IntegerDigits[a,8]]+Total[IntegerDigits[b,8]]}; NestList[ nxt,{0,1},100][[All,1]] (* or *) PadRight[{0,1,1},100,{7,8,8,2,3,5,8,6,7,13,13,12,11,9,6,8}] (* Harvey P. Dale, Apr 19 2020 *)
Formula
Periodic from n=3 with period 16. - Franklin T. Adams-Watters, Mar 13 2006
From Hieronymus Fischer, Jun 27 2007: (Start)
a(n) = a(n-1)+a(n-2)-7*(floor(a(n-1)/8)+floor(a(n-2)/8)).
a(n) = floor(a(n-1)/8)+floor(a(n-2)/8)+(a(n-1)mod 8)+(a(n-2)mod 8).
a(n) = Fib(n)-7*sum{1A000045(n). (End)
Extensions
Incorrect comment removed by Michel Marcus, Apr 29 2018
Comments