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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131533 Period 6: repeat [0, 0, 0, 0, 1, -1]. 3
0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
G.f.: x^4/((x+1)*(x^2+x+1)*(x^2-x+1)). - R. J. Mathar, Nov 14 2007
a(n) = - cos(Pi*n/3)/3 + sin(2*Pi*n/3)/sqrt(3) + (-1)^n/3. - R. J. Mathar, Oct 08 2011
a(n) + a(n-1) + a(n-2) + a(n-3) + a(n-4) + a(n-5) = 0 for n>4. - Wesley Ivan Hurt, Jun 20 2016
MAPLE
A131533:=n->[0, 0, 0, 0, 1, -1][(n mod 6)+1]: seq(A131533(n), n=0..100); # Wesley Ivan Hurt, Jun 20 2016
MATHEMATICA
PadRight[{}, 108, {0, 0, 0, 0, 1, -1}] (* Harvey P. Dale, Jan 27 2012 *)
PROG
(PARI) a(n)=[0, 0, 0, 0, 1, -1][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011
(Magma) &cat [[0, 0, 0, 0, 1, -1]^^20]; // Wesley Ivan Hurt, Jun 20 2016
CROSSREFS
Sequence in context: A152592 A347412 A275926 * A131532 A353513 A085114
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Aug 26 2007
EXTENSIONS
Edited by N. J. A. Sloane, Sep 15 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)