login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131720 Period 6: repeat 0,1,-1,1,-1,0. 1
0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 0, 0, 1, -1, 1, -1, 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+1) mod 6]+2*[(n+2) mod 6]-2*[(n+3) mod 6]+2*[(n+4) mod 6]-[(n+5) mod 6]}, with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Oct 02 2007

a(n) = 1/6*cos(1/3*Pi*n)+1/6*3^(1/2)*sin(1/3*Pi*n)+1/2*cos(2/3*Pi*n)+1/6*3^(1/2)*sin(2/3*Pi*n)+2/3*(-1)^(1+n). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Nov 15 2007

G.f.:(x*(x^2+1))/((x+1)*(x^2-x+1)*(x^2+x+1)) [From Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009]

PROG

(PARI) a(n)=[0, 1, -1, 1, -1, 0][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011

CROSSREFS

Sequence in context: A176416 A102460 A080908 * A131719 A100656 A053867

Adjacent sequences:  A131717 A131718 A131719 * A131721 A131722 A131723

KEYWORD

sign,easy,less

AUTHOR

Paul Curtz (bpcrtz(AT)free.fr), 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 16 15:27 EST 2012. Contains 205930 sequences.