login
A132401
Period 8: repeat 0, 0, 1, 1, 2, -1, -1, -2.
0
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,5
PROG
(PARI) a(n)=[0, 0, 1, 1, 2, -1, -1, -2][n%8+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Cf. A132367.
Sequence in context: A114781 A083890 A000989 * A104273 A051778 A057554
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Nov 12 2007
STATUS
approved