OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,-2,2).
FORMULA
a(0) = 1, a(1) = -2, a(2) = 0, a(n) = -a(n-1) - 2*a(n-2) + 2*a(n-3) for n > 2. - Harvey P. Dale, Dec 11 2011
MATHEMATICA
CoefficientList[Series[(1-x)/(1+x+2x^2-2x^3), {x, 0, 40}], x] (* or *) LinearRecurrence[{-1, -2, 2}, {1, -2, 0}, 40] (* Harvey P. Dale, Dec 11 2011 *)
PROG
(PARI) Vec((1-x)/(1+x+2*x^2-2*x^3) + O(x^50)) \\ Jinyuan Wang, Apr 07 2020
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved