A268349 Expansion of (1 + x - x^2 - 6*x^3)/(1 - x - 2*x^2 - 3*x^3 - 4*x^4).
1, 2, 3, 4, 20, 45, 109, 275, 708, 1765, 4442, 11196, 28207, 70985, 178755, 450130, 1133423, 2853888, 7186144, 18094709, 45562353, 114725755, 288879164, 727396569, 1831581574, 4611915224, 11612784735, 29240946181, 73628587619, 185396495082
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,2,3,4).
Programs
-
Magma
[n le 4 select n else Self(n-1)+2*Self(n-2)+3*Self(n-3)+4*Self(n-4): n in [1..35]]; // Vincenzo Librandi, Feb 04 2016
-
Mathematica
LinearRecurrence[{1, 2, 3, 4}, {1, 2, 3, 4}, 30] CoefficientList[Series[(1 + x - x^2 - 6 x^3) / (1 - x - 2 x^2 - 3 x^3 - 4 x^4), {x, 0, 33}], x] (* Vincenzo Librandi, Feb 04 2016 *)
-
PARI
Vec((1+x-x^2-6*x^3)/(1-x-2*x^2-3*x^3-4*x^4) + O(x^40)) \\ Michel Marcus, Feb 02 2016
Formula
G.f.: (1 + x - x^2 - 6*x^3)/(1 - x - 2*x^2 - 3*x^3 - 4*x^4).
Comments