|
|
A027055
|
|
a(n) = T(n, n+4), T given by A027052.
|
|
2
|
|
|
1, 18, 59, 146, 319, 652, 1281, 2456, 4637, 8670, 16111, 29822, 55067, 101528, 187013, 344276, 633561, 1165674, 2144419, 3944650, 7255831, 13346084, 24547849, 45151152, 83046581, 152747190, 280946647, 516742262, 950438067
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
4,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 4*a(n-1) -5*a(n-2) +2*a(n-3) -a(n-4) +2*a(n-5) -a(n-6) for n>9.
G.f.: x^4*(1+14*x-8*x^2-2*x^3-5*x^4+4*x^5)/((1-x)^3*(1-x-x^2-x^3)).
(End)
|
|
MAPLE
|
seq(coeff(series(x^4*(1+14*x-8*x^2-2*x^3-5*x^4+4*x^5)/((1-x)^3*(1-x-x^2-x^3)), x, n+1), x, n), n = 4..40); # G. C. Greubel, Nov 06 2019
|
|
MATHEMATICA
|
LinearRecurrence[{4, -5, 2, -1, 2, -1}, {1, 18, 59, 146, 319, 652}, 40] (* G. C. Greubel, Nov 06 2019 *)
|
|
PROG
|
(PARI) my(x='x+O('x^40)); Vec(x^4*(1+14*x-8*x^2-2*x^3-5*x^4+4*x^5)/((1-x)^3*(1-x-x^2-x^3))) \\ G. C. Greubel, Nov 06 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( x^4*(1+14*x-8*x^2-2*x^3-5*x^4+4*x^5)/((1-x)^3*(1-x-x^2-x^3)) )); // G. C. Greubel, Nov 06 2019
(Sage)
P.<x> = PowerSeriesRing(ZZ, prec)
return P(x^4*(1+14*x-8*x^2-2*x^3-5*x^4+4*x^5)/((1-x)^3*(1-x-x^2-x^3))).list()
(GAP) a:=[1, 18, 59, 146, 319, 652];; for n in [7..40] do a[n]:=4*a[n-1] -5*a[n-2]+2*a[n-3]-a[n-4]+2*a[n-5]-a[n-6]; od; a; # G. C. Greubel, Nov 06 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|