A290900 p-INVERT of the positive integers, where p(S) = 1 - S^2 - S^3.
0, 1, 5, 17, 51, 149, 439, 1308, 3916, 11728, 35093, 104943, 313773, 938199, 2805439, 8389163, 25086356, 75016104, 224321012, 670787533, 2005857561, 5998122649, 17936209267, 53634716681, 160384099011, 479597177352, 1434141243492, 4288517958652
Offset: 0
Links
- Clark Kimberling, Table of n, a(n) for n = 0..1000
- Jean-Luc Baril, Pamela E. Harris, and José L. Ramírez, Flattened Catalan Words, arXiv:2405.05357 [math.CO], 2024. See p. 22.
- Index entries for linear recurrences with constant coefficients, signature (6,-14,19,-14,6,-1).
Programs
-
Mathematica
z = 60; s = x/(1 - x)^2; p = 1 - s^2 - s^3; Drop[CoefficientList[Series[s, {x, 0, z}], x], 1] (* A000027 *) Drop[CoefficientList[Series[1/p, {x, 0, z}], x], 1] (* A290900 *)
-
PARI
concat(0, Vec(x*(1 - x + x^2) / (1 - 6*x + 14*x^2 - 19*x^3 + 14*x^4 - 6*x^5 + x^6) + O(x^40))) \\ Colin Barker, Aug 18 2017
Formula
a(n) = 6*a(n-1) - 14*a(n-2) + 19*a(n-3) - 14*a(n-4) + 6*a(n-5) - a(n-6).
G.f.: x*(1 - x + x^2) / (1 - 6*x + 14*x^2 - 19*x^3 + 14*x^4 - 6*x^5 + x^6). - Colin Barker, Aug 18 2017
Comments