OFFSET
0,2
COMMENTS
Linear recurrence and g.f. confirmed by Shutov/Maleev link in A301716. - Ray Chandler, Aug 30 2023
LINKS
Ray Chandler, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1, 0, 1, -1, 1, -1, 0, -1, 1).
FORMULA
From Colin Barker, Apr 09 2018: (Start)
G.f.: (1 + 6*x + 12*x^2 + 17*x^3 + 12*x^4 + 17*x^5 + 12*x^6 + 6*x^7 + x^8) / ((1 - x)^3*(1 + x + x^2)*(1 + x + x^2 + x^3 + x^4)).
a(n) = a(n-1) + a(n-3) - a(n-4) + a(n-5) - a(n-6) - a(n-8) + a(n-9) for n>8.
(End)
MATHEMATICA
Accumulate[LinearRecurrence[{0, 0, 1, 0, 1, 0, 0, -1}, {1, 6, 12, 18, 18, 30, 36, 36, 48}, 60]] (* or *) LinearRecurrence[{1, 0, 1, -1, 1, -1, 0, -1, 1}, {1, 7, 19, 37, 55, 85, 121, 157, 205}, 60] (* Harvey P. Dale, Sep 07 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 26 2018
STATUS
approved