login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A083594
a(n) = (7 - 4*(-2)^n)/3.
2
1, 5, -3, 13, -19, 45, -83, 173, -339, 685, -1363, 2733, -5459, 10925, -21843, 43693, -87379, 174765, -349523, 699053, -1398099, 2796205, -5592403, 11184813, -22369619, 44739245, -89478483, 178956973, -357913939, 715827885, -1431655763, 2863311533, -5726623059
OFFSET
0,2
COMMENTS
Also generalized k-bonacci sequence a(n)=2*a(n-2)-a(n-1). - Philippe LALLOUET (philip.lallouet(AT)wanadoo.fr), Jun 30 2007
FORMULA
G.f.: (1+6*x)/((1-x)*(1+2*x)).
E.g.f.: (7*exp(x)-4*exp(-2*x))/3.
MATHEMATICA
(7-4(-2)^Range[0, 40])/3 (* or *) LinearRecurrence[{-1, 2}, {1, 5}, 40] (* Harvey P. Dale, Feb 25 2012 *)
CROSSREFS
Cf. A083595.
Sequence in context: A085910 A093544 A082983 * A178497 A364888 A367204
KEYWORD
easy,sign
AUTHOR
Paul Barry, May 02 2003
STATUS
approved