OFFSET
1,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (3, -2, 0, -1, 1).
FORMULA
a(n) = 3*a(n-1) -2*a(n-2) -a(n-4) +a(n-5).
MATHEMATICA
Rest[CoefficientList[Series[x*(-1 + 2*x - 3*x^3 + x^4)/((x^3 + x^2 + x - 1)*(x - 1)^2), {x, 0, 50}], x]] (* or *) LinearRecurrence[{3, -2, 0, -1, 1}, {1, 1, 1, 4, 8}, 50] (* G. C. Greubel, Sep 14 2017 *)
PROG
(PARI) x='x+O('x^50); Vec(x*(-1+2*x-3*x^3+x^4)/((x^3+x^2+x-1)*(x-1)^2)) \\ G. C. Greubel, Sep 14 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Sep 09 2006
EXTENSIONS
Definition replaced with generating function by the Assoc. Eds. of the OEIS, Mar 27 2010
STATUS
approved