The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A131554 Period 5: repeat [1, 1, -1, 1, -1]. 0
1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
G.f.: (-1-x+x^2-x^3+x^4)/(x-1)/(1+x+x^2+x^3+x^4). - R. J. Mathar, Nov 14 2007
a(0)=1, a(1)=1, a(2)=-1, a(3)=1, a(4)=-1, a(n)=a(n-5). - Harvey P. Dale, Jul 05 2013
a(n) = (1 - 4*(cos(4*(n-4)*Pi/5) + cos(2*(n-2)*Pi/5) + cos(4*(n-2)*Pi/5) + cos(2*(n+1)*Pi/5)))/5. - Wesley Ivan Hurt, Sep 27 2018
MATHEMATICA
PadRight[{}, 120, {1, 1, -1, 1, -1}] (* or *) LinearRecurrence[{0, 0, 0, 0, 1}, {1, 1, -1, 1, -1}, 120] (* Harvey P. Dale, Jul 05 2013 *)
PROG
(PARI) Vec((1+x-x^2+x^3-x^4)/(1-x)/(1+x+x^2+x^3+x^4)+O(x^99)) \\ Charles R Greathouse IV, Jun 13 2013
CROSSREFS
Sequence in context: A321753 A186032 A212157 * A153881 A160357 A186039
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Aug 26 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 May 17 10:20 EDT 2024. Contains 372594 sequences. (Running on oeis4.)