OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0, 5, 2).
FORMULA
From R. J. Mathar, Feb 15 2008: (Start)
O.g.f.: 4*(x-2)/(7*(x^2+2*x-1)) - 1/(7*(1+2*x)).
a(n) = (4*A078343(n+1)-(-2)^n)/7.
MATHEMATICA
a = {1, 2, 4}; Do[AppendTo[a, 5*a[[ -2]] + 2*a[[ -3]]], {40}]; a (* Stefan Steinerberger, Feb 15 2008 *)
LinearRecurrence[{0, 5, 2}, {1, 2, 4}, 30] (* Harvey P. Dale, May 25 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Feb 13 2008
EXTENSIONS
More terms from R. J. Mathar and Stefan Steinerberger, Feb 15 2008
STATUS
approved