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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A132367 Period 6: repeat 1, 1, 2, -1, -1, -2. 4
1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2, 1, 1, 2, -1, -1, -2 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

LINKS

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

FORMULA

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

a(n) = cos(Pi*n/3)/3+sqrt(3)*sin(Pi*n/3)+2*(-1)^n/3. - R. J. Mathar, Oct 08 2011

PROG

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

CROSSREFS

Cf. A061347, A100051, A100063, A122876.

Sequence in context: A132419 A131556 A107751 * A087204 A101825 A177702

Adjacent sequences:  A132364 A132365 A132366 * A132368 A132369 A132370

KEYWORD

sign,easy,less

AUTHOR

Paul Curtz (bpcrtz(AT)free.fr), Nov 09 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 14:50 EST 2012. Contains 206050 sequences.