OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,0,-1).
FORMULA
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = a(n-3) - a(n-6) for n > 5.
G.f.: (1 - x)*(1 + 2*x + x^3 - x^4)/(1 - x^3 + x^6). (End)
MATHEMATICA
CoefficientList[Series[(1 - x)*(1 + 2*x + x^3 - x^4)/(1 - x^3 + x^6), {x, 0, 80}], x] (* Wesley Ivan Hurt, Jan 01 2024 *)
PadRight[{}, 100, {1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1}] (* or *) LinearRecurrence[{0, 0, 1, 0, 0, -1}, {1, 1, -2, 2, -1, -1}, 100] (* Harvey P. Dale, Jun 22 2024 *)
CROSSREFS
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Jun 29 2008
STATUS
approved