A321703 a(n) = 3*a(n-1) + 4*a(n-2) + a(n-3), a(0) = 1, a(1) = 1, a(2) = 5.
1, 1, 5, 20, 81, 328, 1328, 5377, 21771, 88149, 356908, 1445091, 5851054, 23690434, 95920609, 388374617, 1572496721, 6366909240, 25779089221, 104377401344, 422615470156, 1711135105065, 6928244597163, 28051889681905, 113579782539432, 459875150943079, 1861996472668870, 7539069804318358, 30525070454573633, 123593487053663201, 500419812783602493
Offset: 0
Links
- Colin Barker, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (3,4,1).
Programs
-
Mathematica
CoefficientList[Series[(-1 + 2 x + 2 x^2)/(-1 + 3 x + 4 x^2 + x^3), {x, 0, 50}], x] (* Stefano Spezia, Jan 14 2019 *)
-
PARI
Vec((1 - 2*x - 2*x^2) / (1 - 3*x - 4*x^2 - x^3) + O(x^30)) \\ Colin Barker, Jan 15 2019
Formula
G.f.: (-1 + 2*x + 2*x^2)/(-1 + 3*x + 4*x^2 + x^3). - Stefano Spezia, Jan 14 2019
Comments