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!)
A131714 Period 6: repeat [1, -2, 2, -1, 2, -2]. 2
1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2, 2, -1, 2, -2, 1, -2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: (1-2*x+2*x^2)/(x+1)/(x^2-x+1). - R. J. Mathar, Nov 14 2007
From Wesley Ivan Hurt, Jun 19 2016: (Start)
a(n) + a(n-3) = 0 for n>2.
a(n) = (5*cos(n*Pi)-2*cos(n*Pi/3))/3. (End)
MAPLE
A131714:=n->[1, -2, 2, -1, 2, -2][(n mod 6)+1]: seq(A131714(n), n=0..100); # Wesley Ivan Hurt, Jun 19 2016
MATHEMATICA
PadRight[{}, 200, {1, -2, 2, -1, 2, -2}] (* Wesley Ivan Hurt, Jun 19 2016 *)
PROG
(Magma) &cat[[1, -2, 2, -1, 2, -2]^^20]; // Wesley Ivan Hurt, Jun 19 2016
CROSSREFS
Sequence in context: A243759 A098398 A306211 * A130196 A230866 A158209
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Sep 14 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 19 07:38 EDT 2024. Contains 371782 sequences. (Running on oeis4.)