A290901 p-INVERT of the positive integers, where p(S) = 1 - S^3 - S^4.
0, 0, 1, 7, 29, 93, 260, 689, 1845, 5150, 14897, 43663, 127451, 368383, 1056682, 3022366, 8651672, 24818978, 71319058, 205070493, 589550733, 1694075057, 4866102091, 13975547842, 40139685023, 115298782211, 331216158188, 951506566087, 2733431466995
Offset: 0
Links
- Clark Kimberling, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (8, -28, 57, -71, 57, -28, 8, -1)
Programs
-
Mathematica
z = 60; s = x/(1 - x)^2; p = 1 - s^3 - s^4; Drop[CoefficientList[Series[s, {x, 0, z}], x], 1] (* A000027 *) Drop[CoefficientList[Series[1/p, {x, 0, z}], x], 1] (* A290901 *)
-
PARI
concat(vector(2), Vec(x^2*(1 - x + x^2) / (1 - 8*x + 28*x^2 - 57*x^3 + 71*x^4 - 57*x^5 + 28*x^6 - 8*x^7 + x^8) + O(x^40))) \\ Colin Barker, Aug 18 2017
Formula
a(n) = 8*a(n-1) - 28*a(n-2) + 57*a(n-3) - 71*a(n-4) + 57*a(n-5) - 28*a(n-6) + 8*a(n-7) - a(n-8).
G.f.: x^2*(1 - x + x^2) / (1 - 8*x + 28*x^2 - 57*x^3 + 71*x^4 - 57*x^5 + 28*x^6 - 8*x^7 + x^8). - Colin Barker, Aug 18 2017
Comments