The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A132151 Period 8: repeat [0, 1, 0, 0, 0, 0, -1, 0]. 0
 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, -1, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 LINKS Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1,-1,-1,-1,-1). FORMULA a(n) = (1/8)*{-[(n+1) mod 8]+[(n+2) mod 8]+[(n+6) mod 8]-[(n+7) mod 8]}, with n>=0. - Paolo P. Lava, Nov 19 2007 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 Sequence in context: A288673 A030213 A187969 * A238469 A288596 A284745 Adjacent sequences:  A132148 A132149 A132150 * A132152 A132153 A132154 KEYWORD sign,easy AUTHOR Paul Curtz, Nov 01 2007 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 25 11:03 EST 2022. Contains 350567 sequences. (Running on oeis4.)