OFFSET
0,3
COMMENTS
Binomial transform is A084182.
LINKS
FORMULA
a(n)=2^n+(-2)^n-(-1)^n;
G.f.: (1+2x+4x^2)/((1+x)(1+2x)(1-2x));
E.g.f.: exp(2x)-exp(-x)+exp(-2x).
MATHEMATICA
LinearRecurrence[{-1, 4, 4}, {1, 1, 7}, 50] (* or *) Riffle[ LinearRecurrence[ {5, -4}, {1, 7}, 30], 1] (* Harvey P. Dale, Jan 02 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 19 2003
STATUS
approved