OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,2).
FORMULA
a(n) + a(n+1) = A000079(n), n > 1.
From R. J. Mathar, Jan 23 2009: (Start)
a(n) = a(n-1) + 2*a(n-2).
G.f.: (3-5*x)/((1+x)*(1-2*x)). (End)
MATHEMATICA
Differences[LinearRecurrence[{1, 2}, {0, 1}, 40], 3] (* or *) LinearRecurrence[ {1, 2}, {3, -2}, 40] (* Harvey P. Dale, Apr 20 2018 *)
PROG
(Magma) [(1/3)*(8*(-1)^n+2^n): n in [0..35]]; // Vincenzo Librandi, Jul 24 2011
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Jan 16 2009
EXTENSIONS
Edited and extended by R. J. Mathar, Jan 23 2009
Typo in A-number in formula corrected by R. J. Mathar, Feb 23 2009
STATUS
approved