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!)
A134300 Period 8: repeat [6,-4,2,-1,2,-4,6,-7]. 0
6, -4, 2, -1, 2, -4, 6, -7, 6, -4, 2, -1, 2, -4, 6, -7, 6, -4, 2, -1, 2, -4, 6, -7, 6, -4, 2, -1, 2, -4, 6, -7, 6, -4, 2, -1, 2, -4, 6, -7, 6, -4, 2, -1, 2, -4, 6, -7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = - a(n-1) - a(n-4) - a(n-5) for n > 4.
G.f.: (7*x^4 + x^3 - 2*x^2 + 2*x + 6)/((x + 1)*(x^4 + 1)). (End)
MATHEMATICA
PadRight[{}, 120, {6, -4, 2, -1, 2, -4, 6, -7}] (* Harvey P. Dale, Jun 01 2018 *)
PROG
(PARI) a(n)=[6, -4, 2, -1, 2, -4, 6, -7][n%8+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Sequence in context: A157701 A193076 A073449 * A226655 A340722 A199741
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Jan 16 2008
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 13 21:51 EDT 2024. Contains 372523 sequences. (Running on oeis4.)