OFFSET
0,2
COMMENTS
Linear recurrence and g.f. confirmed by Shutov/Maleev link in A298024. - Ray Chandler, Aug 31 2023
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2, -1, 1, -2, 1).
FORMULA
From Colin Barker, Jan 21 2018: (Start)
G.f.: (1 + 3*x + 6*x^2 + 3*x^3 + x^4) / ((1 - x)^3*(1 + x + x^2)).
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5) for n>4.
(End)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 21 2018
EXTENSIONS
More terms from Rémy Sigrist, Jan 21 2018
STATUS
approved