A010076 a(n) = sum of base-9 digits of a(n-1) + sum of base-9 digits of a(n-2).
0, 1, 1, 2, 3, 5, 8, 13, 13, 10, 7, 9, 8, 9, 9, 2, 3, 5, 8, 13, 13, 10, 7, 9, 8, 9, 9, 2, 3, 5, 8, 13, 13, 10, 7, 9, 8, 9, 9, 2, 3, 5, 8, 13, 13, 10, 7, 9, 8, 9, 9, 2, 3, 5, 8, 13, 13, 10, 7, 9, 8, 9, 9, 2, 3, 5, 8, 13, 13, 10, 7, 9, 8, 9, 9
Offset: 0
Links
- Index entries for Colombian or self numbers and related sequences
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,1).
Crossrefs
Programs
-
Mathematica
PadRight[{0, 1, 1}, 100, {8, 9, 9, 2, 3, 5, 8, 13, 13, 10, 7, 9}] (* Paolo Xausa, Aug 25 2024 *)
Formula
Periodic from n=3 with period 12. - Franklin T. Adams-Watters, Mar 13 2006
From Hieronymus Fischer, Jun 27 2007: (Start)
a(n) = a(n-1)+a(n-2)-8*(floor(a(n-1)/9)+floor(a(n-2)/9)).
a(n) = floor(a(n-1)/9)+floor(a(n-2)/9)+(a(n-1)mod 9)+(a(n-2)mod 9).
a(n) = Fib(n)-8*sum{1A000045(n). (End)
Extensions
Incorrect comment removed by Michel Marcus, Apr 29 2018
Comments