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
LINKS
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
KEYWORD
easy,sign
AUTHOR
Paul Barry, May 02 2003
STATUS
approved