OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (2,2,2,2,2,2,2,2,2,-3).
FORMULA
G.f.: (t^10 + 2*t^9 + 2*t^8 + 2*t^7 + 2*t^6 + 2*t^5 + 2*t^4 + 2*t^3 + 2*t^2 + 2*t + 1)/(3*t^10 - 2*t^9 - 2*t^8 - 2*t^7 - 2*t^6 - 2*t^5 - 2*t^4 - 2*t^3 - 2*t^2 - 2*t + 1).
MAPLE
seq(coeff(series((1+t)*(1-t^10)/(1-3*t+5*t^10-3*t^11), t, n+1), t, n), n = 0 .. 30); # G. C. Greubel, Sep 16 2019
MATHEMATICA
CoefficientList[Series[(1+t)*(1-t^10)/(1-3*t+5*t^10-3*t^11), {t, 0, 30}], t] (* G. C. Greubel, Apr 07 2016 *)
coxG[{10, 3, -2}] (* The coxG program is at A169452 *) (* G. C. Greubel, Sep 16 2019 *)
PROG
(PARI) my(t='t+O('t^30)); Vec((1+t)*(1-t^10)/(1-3*t+5*t^10-3*t^11)) \\ G. C. Greubel, Sep 16 2019
(Magma) R<t>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1+t)*(1-t^10)/(1-3*t+5*t^10-3*t^11) )); // G. C. Greubel, Sep 16 2019
(Sage)
def A165756_list(prec):
P.<t> = PowerSeriesRing(ZZ, prec)
return P((1+t)*(1-t^10)/(1-3*t+5*t^10-3*t^11)).list()
A165756_list(30) # G. C. Greubel, Sep 16 2019
(GAP) a:=[4, 12, 36, 108, 324, 972, 2916, 8748, 26244, 78726];; for n in [11..30] do a[n]:=2*Sum([1..9], j-> a[n-j]) -3*a[n-10]; od; Concatenation([1], a); # G. C. Greubel, Sep 16 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
John Cannon and N. J. A. Sloane, Dec 03 2009
STATUS
approved