OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,5,-20,-4,16).
FORMULA
G.f.: x*(1-3*x+6*x^2)/((1-x^2)*(1-4*x)*(1-4*x^2)).
a(n) = 2*(4^n+1)/9 - 4*(-2)^n/9 - 2^n/3 + (-1)^n/3.
a(n) mod 3 = A095130(n).
E.g.f.: (2*exp(4*x) - 3*exp(2*x) + 2*exp(x) + 3*exp(-x) - 4*exp(-2*x)) / 9. - Amiram Eldar, Feb 20 2026
MATHEMATICA
LinearRecurrence[{4, 5, -20, -4, 16}, {0, 1, 1, 15, 45}, 30] (* Harvey P. Dale, Nov 07 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 29 2004
STATUS
approved
