This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A132380 Period 8: 0, 0, 1, 1, 0, 0, -1, -1. 6
 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 LINKS Antti Karttunen, Table of n, a(n) for n = 0..8191 Index entries for linear recurrences with constant coefficients, signature (0,0,0,-1). FORMULA a(n)=(1/8)*{-(n mod 8)+[(n+2) mod 8]+[(n+4) mod 8]-[(n+6) mod 8]}, with n>=0. - Paolo P. Lava, Nov 19 2007 O.g.f.: x^2(1+x)/(1+x^4). - R. J. Mathar, Apr 06 2008 For n > 0, a(n) = A109247(n)/-3. - Antti Karttunen, Aug 12 2017 MATHEMATICA PadRight[{}, 120, {0, 0, 1, 1, 0, 0, -1, -1}] (* Harvey P. Dale, Mar 17 2016 *) PROG (PARI) a(n)=[0, 0, 1, 1, 0, 0, -1, -1][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011 (Scheme) (define (A132380 n) (list-ref '(0 0 1 1 0 0 -1 -1) (modulo n 8))) ;; Antti Karttunen, Aug 12 2017 CROSSREFS Cf. A109247. Sequence in context: A094754 A091225 A175337 * A021913 A156660 A155899 Adjacent sequences:  A132377 A132378 A132379 * A132381 A132382 A132383 KEYWORD sign,easy,less AUTHOR Paul Curtz, Nov 10 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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.