A106666 Expansion of g.f. (1-4*x^2+2*x^3)/((1-x)*(1-2*x-2*x^2+2*x^3)).
1, 3, 5, 13, 29, 73, 177, 441, 1089, 2705, 6705, 16641, 41281, 102433, 254145, 630593, 1564609, 3882113, 9632257, 23899521, 59299329, 147133185, 365065985, 905799681, 2247464961, 5576397313, 13836125185, 34330115073, 85179685889
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (3,0,-4,2).
Programs
-
Magma
R
:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1-4*x^2+2*x^3)/((1-x)*(1-2*x-2*x^2+2*x^3)) )); // G. C. Greubel, Sep 08 2021 -
Mathematica
LinearRecurrence[{3,0,-4,2},{1,3,5,13},30] (* Harvey P. Dale, Jul 28 2015 *)
-
SageMath
def A106666_list(prec): P.
= PowerSeriesRing(QQ, prec) return P( (1-4*x^2+2*x^3)/((1-x)*(1-2*x-2*x^2+2*x^3)) ).list() A106666_list(50) # G. C. Greubel, Sep 08 2021
Comments