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^13)/((1-x)*(1-x^2)*(1-x^3)), {x, 0, 60}], x] (* G. C. Greubel, Aug 04 2019 *)
PROG
(PARI) my(x='x+O('x^60)); Vec((1+x^13)/((1-x)*(1-x^2)*(1-x^3))) \\ G. C. Greubel, Aug 04 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 60); Coefficients(R!( (1+x^13)/((1-x)*(1-x^2)*(1-x^3)) )); // G. C. Greubel, Aug 04 2019
(Sage) ((1+x^13)/((1-x)*(1-x^2)*(1-x^3))).series(x, 60).coefficients(x, sparse=False) # G. C. Greubel, Aug 04 2019
(GAP) a:=[8, 10, 12, 14, 16, 19];; for n in [7..60] do a[n]:=2*a[n-1]-a[n-2] +a[n-3]-2*a[n-4]+a[n-5]; od; Concatenation([1, 1, 2, 3, 4, 5, 7], a); # G. C. Greubel, Aug 04 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved