login
A166114
a(n) = (6-(-4)^n)/5.
3
1, 2, -2, 14, -50, 206, -818, 3278, -13106, 52430, -209714, 838862, -3355442, 13421774, -53687090, 214748366, -858993458, 3435973838, -13743895346, 54975581390, -219902325554, 879609302222, -3518437208882, 14073748835534, -56294995342130
OFFSET
0,2
FORMULA
a(n) = 4*a(n-2) - 3*a(n-1), a(0)= 1, a(1)= 2, for n>1.
a(n) = 6 - 4*a(n-1), a(0)=1.
a(n) = a(n-1) + (-4)^(n-1), a(0)=1.
G.f.: (1+5x)/(1+3x-4x^2).
E.g.f.: (6*exp(x) - exp(-4x))/5.
MATHEMATICA
Table[(6 - (-4)^n)/5, {n, 0, 100}] (* G. C. Greubel, Apr 24 2016 *)
PROG
(PARI) a(n)=(6-(-4)^n)/5 \\ Charles R Greathouse IV, Apr 28 2016
CROSSREFS
Sequence in context: A277556 A321179 A345370 * A366364 A202730 A292080
KEYWORD
easy,sign
AUTHOR
Philippe Deléham, Oct 06 2009
EXTENSIONS
a(12) onward changed by Georg Fischer, May 03 2019
STATUS
approved