OFFSET
0,1
COMMENTS
LINKS
FORMULA
a(n) = a(n-1)+2*a(n-2) for n > 1; a(0) = 3, a(1) = -1.
a(n) = 2^n-a(n-1) for n > 0; a(0) = 3.
G.f.: (3-4*x)/((1+x)*(1-2*x)).
MATHEMATICA
Nest[Append[#, Last[#]+2#[[-2]]]&, {3, -1}, 40] (* Harvey P. Dale, Apr 07 2011 *)
PROG
(Magma) [ (2*2^n+7*(-1)^n)/3: n in [0..32] ];
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Klaus Brockhaus, Dec 07 2009
STATUS
approved