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 (1,1,0,0,-2,0,0,1,1,-1).
MAPLE
seq(coeff(series((1+x^4)/((1-x)*(1-x^2)*(1-x^3)*(1-x^4)), x, n+1), x, n), n = 0 .. 60); # G. C. Greubel, Sep 10 2019
MATHEMATICA
LinearRecurrence[{1, 1, 0, 0, -2, 0, 0, 1, 1, -1}, {1, 1, 2, 3, 6, 7, 11, 14, 20, 24}, 60] (* G. C. Greubel, Sep 10 2019 *)
PROG
(PARI) my(x='x+O('x^60)); Vec((1+x^4)/((1-x)*(1-x^2)*(1-x^3)*(1-x^4))) \\ G. C. Greubel, Sep 10 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 60); Coefficients(R!( (1+x^4)/((1-x)*(1-x^2)*(1-x^3)*(1-x^4)) )); // G. C. Greubel, Sep 10 2019
(Sage)
def A008765_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((1+x^4)/((1-x)*(1-x^2)*(1-x^3)*(1-x^4))).list()
A008765_list(60) # G. C. Greubel, Sep 10 2019
(GAP) a:=[1, 1, 2, 3, 6, 7, 11, 14, 20, 24];; for n in [11..60] do a[n]:=a[n-1] +a[n-2]-2*a[n-5]+a[n-8]+a[n-9]-a[n-10]; od; a; # G. C. Greubel, Sep 10 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(44) onward added by G. C. Greubel, Sep 10 2019
STATUS
approved