OFFSET
0,2
COMMENTS
Linear recurrence and g.f. confirmed by Shutov/Maleev link in A301684. - 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 (2, -1, 1, -2, 1).
FORMULA
From Chai Wah Wu, Feb 03 2021: (Start)
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5) for n > 8.
G.f.: (2*x^8 - 2*x^6 - 3*x^4 - 3*x^3 - 4*x^2 - 3*x - 1)/((x - 1)^3*(x^2 + x + 1)). (End)
MATHEMATICA
LinearRecurrence[{2, -1, 1, -2, 1}, {1, 5, 13, 25, 43, 65, 93, 127, 163}, 60] (* Harvey P. Dale, Jun 22 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 25 2018
STATUS
approved