login
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
OFFSET
0,1
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