OFFSET
4,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 4..1000
Index entries for linear recurrences with constant coefficients, signature (5,-9,6,1,-3,1).
FORMULA
G.f.: x^4*(1+2*x)/((1-x)^4*(1-x-x^2)). - Ralf Stephan, Feb 07 2004
MATHEMATICA
Drop[CoefficientList[Series[x^4*(1+2*x)/((1-x)^4*(1-x-x^2)), {x, 0, 40}], x], 4] (* G. C. Greubel, Jun 29 2019 *)
PROG
(PARI) my(x='x+O('x^40)); Vec(x^4*(1+2*x)/((1-x)^4*(1-x-x^2))) \\ G. C. Greubel, Jun 29 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( x^4*(1+2*x)/((1-x)^4*(1-x-x^2)) )); // G. C. Greubel, Jun 29 2019
(Sage) a=(x^4*(1+2*x)/((1-x)^4*(1-x-x^2))).series(x, 40).coefficients(x, sparse=False); a[4:] # G. C. Greubel, Jun 29 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved