OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1,-1,-1,-1,-1).
FORMULA
a(n) = floor((n-1)/8) - floor((n-2)/8) - floor((n-6)/8) + floor((n-7)/8). - Wesley Ivan Hurt, Sep 01 2019
PROG
(PARI) a(n)=if(n%8==1, 1, n%8==6, -1, 0) \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Nov 01 2007
STATUS
approved