The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 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 Index entries for linear recurrences with constant coefficients, signature (-1,0,0,-1,-1). FORMULA a(n) = (1/8)*{-13*(n mod 8)+13*[(n+1) mod 8]-10*[(n+2) mod 8]+6*[(n+3) mod 8]-3*[(n+4) mod 8]+3*[(n+5) mod 8]-6*[(n+6) mod 8]+10*[(n+7) mod 8]}, with n>=0. - Paolo P. Lava, Jan 25 2008 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 Adjacent sequences:  A134297 A134298 A134299 * A134301 A134302 A134303 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 18 12:15 EDT 2021. Contains 345099 sequences. (Running on oeis4.)