OFFSET
0,3
LINKS
FORMULA
G.f.: (1+x-x^2)/((1+x)(1-2x)(1+2x)); E.g.f.: exp(-2x)/4+5exp(2x)/12+exp(-x)/3=cosh(2x)/2+exp(2x)/6+exp(-x)/3; a(n)=(-2)^n/4+5*2^n/12+(-1)^n/3.
MATHEMATICA
LinearRecurrence[{-1, 4, 4}, {1, 0, 3}, 40] (* Harvey P. Dale, Dec 13 2022 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 10 2004
STATUS
approved