|
|
A123871
|
|
Expansion of g.f.: (1+x+x^2)/(1-4*x-4*x^2).
|
|
2
|
|
|
1, 5, 25, 120, 580, 2800, 13520, 65280, 315200, 1521920, 7348480, 35481600, 171320320, 827207680, 3994112000, 19285278720, 93117562880, 449611366400, 2170915717120, 10482108334080, 50612096204800, 244376818155520, 1179955657441280, 5697329902387200
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
seq(coeff(series((1+x+x^2)/(1-4*x-4*x^2), x, n+1), x, n), n = 0..30); # G. C. Greubel, Aug 08 2019
|
|
MATHEMATICA
|
CoefficientList[Series[(1+x+x^2)/(1-4*x-4*x^2), {x, 0, 30}], x] (* Vincenzo Librandi, Jun 27 2012 *)
LinearRecurrence[{4, 4}, {1, 5, 25}, 30] (* Harvey P. Dale, Mar 25 2022 *)
|
|
PROG
|
(Magma) I:=[1, 5, 25]; [n le 3 select I[n] else 4*Self(n-1)+4*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Jun 27 2012
(PARI) my(x='x+O('x^30)); Vec((1+x+x^2)/(1-4*x-4*x^2)) \\ G. C. Greubel, Aug 08 2019
(Sage)
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1+x+x^2)/(1-4*x-4*x^2) ).list()
(GAP) a:=[1, 5, 25];; for n in [4..30] do a[n]:=4*a[n-1]+4*a[n-2]; od; a; # G. C. Greubel, Aug 08 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|