OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
MATHEMATICA
CoefficientList[Series[(1+x^9)/((1-x)*(1-x^2)*(1-x^3)), {x, 0, 50}], x] (* G. C. Greubel, Aug 04 2019 *)
LinearRecurrence[{2, -1, 1, -2, 1}, {1, 1, 2, 3, 4, 5, 7, 8, 10}, 50] (* Harvey P. Dale, Oct 24 2020 *)
PROG
(PARI) my(x='x+O('x^50)); Vec((1+x^9)/((1-x)*(1-x^2)*(1-x^3))) \\ G. C. Greubel, Aug 04 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1+x^9)/((1-x)*(1-x^2)*(1-x^3)) )); // G. C. Greubel, Aug 04 2019
(Sage) ((1+x^9)/((1-x)*(1-x^2)*(1-x^3))).series(x, 50).coefficients(x, sparse=False) # G. C. Greubel, Aug 04 2019
(GAP) a:=[1, 1, 2, 3, 4];; for n in [6..50] do a[n]:=2*a[n-1]-a[n-2]+a[n-3] -2*a[n-4]+a[n-5]; od; a; # G. C. Greubel, Aug 04 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved