OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2, 2, 2, 2, -3).
FORMULA
G.f.: (t^5 + 2*t^4 + 2*t^3 + 2*t^2 + 2*t + 1)/(3*t^5 - 2*t^4 - 2*t^3 - 2*t^2 - 2*t + 1).
a(n) = 2*a(n-1)+2*a(n-2)+2*a(n-3)+2*a(n-4)-3*a(n-5). - Wesley Ivan Hurt, May 10 2021
MATHEMATICA
CoefficientList[Series[(1+x)*(1-x^5)/(1-3*x+5*x^5-3*x^6), {x, 0, 30}], x] (* or *) Join[{1}, LinearRecurrence[{2, 2, 2, 2, -3}, {1, 4, 12, 36, 108, 318}, 30]] (* G. C. Greubel, Dec 18 2016 *)
coxG[{4, 3, -2}] (* The coxG program is at A169452 *) (* G. C. Greubel, May 12 2019 *)
PROG
(PARI) my(x='x+O('x^30)); Vec((1+x)*(1-x^5)/(1-3*x+5*x^5-3*x^6)) \\ G. C. Greubel, Dec 18 2016
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1+x)*(1-x^5)/(1-3*x+5*x^5-3*x^6) )); // G. C. Greubel, May 12 2019
(Sage) ((1+x)*(1-x^5)/(1-3*x+5*x^5-3*x^6)).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, May 12 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Cannon and N. J. A. Sloane, Dec 03 2009
STATUS
approved