A291249 p-INVERT of (0,1,0,1,0,1,...), where p(S) = 1 - S - S^2 - S^3 + S^4 + S^5.
1, 2, 5, 10, 23, 47, 102, 214, 452, 955, 2003, 4223, 8854, 18610, 39032, 81896, 171752, 360103, 754985, 1582497, 3316978, 6951684, 14568692, 30530311, 63977107, 134063288, 280920507, 588643384, 1233430247, 2584481968, 5415381139, 11347029572, 23775710791
Offset: 0
Links
- Clark Kimberling, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (1, 6, -3, -14, 3, 14, -3, -6, 1, 1)
Programs
-
Mathematica
z = 60; s = x/(1 - x^2); p = 1 - s - s^2 - s^3 + s^4 + s^5; Drop[CoefficientList[Series[s, {x, 0, z}], x], 1] (* A000035 *) Drop[CoefficientList[Series[1/p, {x, 0, z}], x], 1] (* A291249 *) LinearRecurrence[{1,6,-3,-14,3,14,-3,-6,1,1},{1,2,5,10,23,47,102,214,452,955},40] (* Harvey P. Dale, Jul 21 2018 *)
Formula
G.f.: -((1 + x - 3 x^2 - 4 x^3 + 3 x^4 + 4 x^5 - 3 x^6 - x^7 + x^8)/((-1 + x + x^2) (1 + x - x^2 - x^3 + x^4) (1 - x - 3 x^2 + x^3 + x^4))).
a(n) = a(n-1) + 6*a(n-2) - 3*a(n-3) - 14*a(n-4) + 3*a(n-5) + 14*a(n-6) - 3*a(n-7) - 6*a(n-8) + a(n-9) + a(n-10) for n >= 11.
Comments