login
This site is supported by donations 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. 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, 0, 0, 1, -1, 0, 0 (list; graph; refs; listen; history; internal format)
OFFSET

0,1

LINKS

Index entries for sequences related to linear recurrences with constant coefficients, signature (-1,-1,-1,-1,-1).

FORMULA

a(n)=(1/6)*{-(n mod 6)+2*[(n+1) mod 6]-[(n+2) mod 6]}, with n>=0. - Paolo P. Lava (paoloplava(AT)gmail.com), Aug 28 2007

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

MATHEMATICA

PadRight[{}, 108, {0, 0, 0, 0, 1, -1}] (* From 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

CROSSREFS

Sequence in context: A011665 A059437 A152592 * A131532 A085114 A011661

Adjacent sequences:  A131530 A131531 A131532 * A131534 A131535 A131536

KEYWORD

sign,easy,less

AUTHOR

Paul Curtz (bpcrtz(AT)free.fr), Aug 26 2007

EXTENSIONS

Edited by N. J. A. Sloane (njas(AT)research.att.com), Sep 15 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 07:41 EST 2012. Contains 205998 sequences.