login
A156227
Period 12: repeat [0,1,3,8,3,1,0,8,6,1,6,8].
1
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,3
FORMULA
a(n) = a(n-12). - Wesley Ivan Hurt, May 24 2021
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 *)
PROG
(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
CROSSREFS
Sequence in context: A011230 A245168 A071209 * A021727 A309648 A021265
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Feb 06 2009
STATUS
approved