OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,11,-27,-10,24).
FORMULA
G.f.: 2*x*(6 +59*x +257*x^2 - 294*x^3 -128*x^4)/((1-x)*(1+x)*(1-2*x)*(1+3*x)*(1-4*x)). - Colin Barker, Oct 19 2012
MATHEMATICA
LinearRecurrence[{3, 11, -27, -10, 24}, {0, 12, 154, 1108, 4106, 19972}, 41] (* G. C. Greubel, Dec 25 2022 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); [0] cat Coefficients(R!( 2*x*(6 +59*x+257*x^2-294*x^3-128*x^4)/(1-3*x-11*x^2+27*x^3+10*x^4-24*x^5) )); // G. C. Greubel, Dec 25 2022
(SageMath)
def f(x): return 2*x*(6+59*x+257*x^2-294*x^3-128*x^4)/(1-3*x-11*x^2 +27*x^3+10*x^4-24*x^5)
def A120657_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( f(x) ).list()
A120657_list(40) # G. C. Greubel, Dec 25 2022
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Roger L. Bagula, Aug 10 2006
EXTENSIONS
Edited by G. C. Greubel, Dec 25 2022
Meaningful name using g.f. from Joerg Arndt, Dec 26 2022
STATUS
approved