OFFSET
0,5
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,10,-16,-25,30).
FORMULA
For n>=6, a(n) = 2*a(n-1) + 10*a(n-2) - 16*a(n-3) - 25*a(n-4) + 30*a(n-5).
From Stefano Spezia, Aug 13 2024: (Start)
G.f.: x^2*(1 - x - 5*x^2 + 3*x^3)/((1 - x)*(1 + 2*x)*(1 - 3*x)*(1 - 5*x^2)).
a(n) = (3*5^(n/2)*(1 + (-1)^n) + 3^(1+n) + (-1)^n*2^(1+n) - 5)/60 for n > 0. (End)
MATHEMATICA
LinearRecurrence[{2, 10, -16, -25, 30}, {0, 0, 1, 1, 7, 11}, 30] (* Amiram Eldar, Aug 13 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Miquel A. Fiol, Aug 11 2024
STATUS
approved