A156227 Period 12: repeat [0,1,3,8,3,1,0,8,6,1,6,8].
0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8, 0, 1, 3, 8, 3
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
Programs
-
Mathematica
LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},{0, 1, 3, 8, 3, 1, 0, 8, 6, 1, 6, 8},48] (* Ray Chandler, Aug 08 2015 *) PadRight[{},120,{0,1,3,8,3,1,0,8,6,1,6,8}] (* Harvey P. Dale, Dec 15 2023 *)
-
PARI
a(n)=[0,1,3,8,3,1,0,8,6,1,6,8][n%12+1] \\ Charles R Greathouse IV, Jul 13 2016
Formula
a(n) = a(n-12). - Wesley Ivan Hurt, May 24 2021