OFFSET
0,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Daniel Hardisky, Math Puzzle, Short Mathematical Idea Facebook Group, Oct 19 2024.
Index entries for linear recurrences with constant coefficients, signature (1,1,1,-1,-1).
FORMULA
G.f.: (1+x-x^2-2*x^4) / ((1-x)*(1+x+x^2)*(1-x-x^2)).
a(n) = a(n-1) + a(n-2) + a(n-3) - a(n-4) - a(n-5) for n>4.
MATHEMATICA
LinearRecurrence[{1, 1, 1, -1, -1}, {1, 2, 2, 5, 6}, 50] (* Paolo Xausa, Dec 30 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Dec 27 2024
STATUS
approved
