OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-1,1).
FORMULA
a(n) = 2*a(n-1)-a(n-3)+a(n-4); 4 initial terms required.
G.f.: x*(x - 1)*(2*x + 1)/(x^4 - x^3 + 2*x - 1). - Chai Wah Wu, Jul 29 2020
MATHEMATICA
LinearRecurrence[{2, 0, -1, 1}, {0, 1, 3, 4}, 40] (* Harvey P. Dale, Jan 14 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved