A132401 Period 8: repeat 0, 0, 1, 1, 2, -1, -1, -2.
0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2, -1, -1, -2, 0, 0, 1, 1, 2
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1,-1,-1,-1,-1).
Crossrefs
Cf. A132367.
Programs
-
PARI
a(n)=[0, 0, 1, 1, 2, -1, -1, -2][n%8+1] \\ Charles R Greathouse IV, Jul 13 2016