A217733 Expansion of (1+x-x^2)/((1-x)*(1-3*x^2-x^3)).
1, 2, 4, 8, 15, 29, 54, 103, 192, 364, 680, 1285, 2405, 4536, 8501, 16014, 30040, 56544, 106135, 199673, 374950, 705155, 1324524, 2490416, 4678728, 8795773, 16526601, 31066048, 58375577, 109724746, 206192780, 387549816, 728303087, 1368842229, 2572459078, 4834829775, 9086219464
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,3,-2,-1).
Programs
-
Magma
m:=40; R
:=PowerSeriesRing(Integers(), m); Coefficients(R!((1+x-x^2)/((1-x)*(1-3*x^2-x^3)))); // Bruno Berselli, Mar 25 2013 -
Mathematica
CoefficientList[Series[(1 + x - x^2)/((1 - x) (1 - 3 x^2 - x^3)), {x, 0, 40}], x] (* Bruno Berselli, Mar 25 2013 *)
-
Maxima
makelist(coeff(taylor((1+x-x^2)/((1-x)*(1-3*x^2-x^3)), x, 0, n), x, n), n, 0, 40); /* Bruno Berselli, Mar 25 2013 */