|
|
A155542
|
|
Expansion of (2+2*x)/(1-8*x-25*x^2).
|
|
1
|
|
|
2, 18, 194, 2002, 20866, 216978, 2257474, 23484242, 244310786, 2541592338, 26440508354, 275063875282, 2861523711106, 29768786570898, 309688385344834, 3221726747031122, 33516023609869826, 348671357554736658, 3627271450684638914, 37734955544345527762
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 8*a(n-1) + 25*a(n-2) for n>1.
a(n) = ((4-sqrt(41))^n*(-5+sqrt(41)) + (4+sqrt(41))^n*(5+sqrt(41))) / sqrt(41).
(End)
|
|
MATHEMATICA
|
CoefficientList[Series[(2+2x)/(1-8x-25x^2), {x, 0, 30}], x] (* or *) LinearRecurrence[{8, 25}, {2, 18}, 30] (* Harvey P. Dale, Sep 18 2021 *)
|
|
PROG
|
(Magma) R<x>:=PowerSeriesRing(Integers(), 25); Coefficients(R!( (2+2*x)/(1-8*x-25*x^2))); // Marius A. Burtea, Jan 13 2020
(Magma) a:=[2, 18]; [n le 2 select a[n] else 8*Self(n-1)+25 *Self(n-2):n in [1..25]]; // Marius A. Burtea, Jan 13 2020
(PARI) Vec(2*(1 + x) / (1 - 8*x - 25*x^2) + O(x^20)) \\ Colin Barker, Jan 13 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|