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).
FORMULA
MATHEMATICA
CoefficientList[Series[(1+x^7)/(1-x)/(1-x^2)/(1-x^3), {x, 0, 50}], x] (* Michael De Vlieger, Jul 09 2015 *)
PROG
(PARI) my(x='x+O('x^50)); Vec((1+x^7)/((1-x)*(1-x^2)*(1-x^3))) \\ G. C. Greubel, Aug 04 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1+x^7)/((1-x)*(1-x^2)*(1-x^3)) )); // G. C. Greubel, Aug 04 2019
(Sage) ((1+x^7)/((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,easy
AUTHOR
STATUS
approved