OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-1)
FORMULA
Equals A022098(n) - 1.
G.f.: x*(7-6*x)/( (1-x)*(1-x-x^2) ). - R. J. Mathar, Apr 07 2011
a(n) = F(n+2) + 6*F(n) - 1, where F = A000045. - G. C. Greubel, Aug 25 2017
MATHEMATICA
LinearRecurrence[{2, 0, -1}, {0, 7, 8}, 60] (* Vladimir Joseph Stephan Orlovsky, Feb 16 2012 *)
PROG
(PARI) x='x+O('x^50); concat([0], Vec(x*(7-6*x)/( (1-x)*(1-x-x^2) ))) \\ G. C. Greubel, Aug 25 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved