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
From R. J. Mathar, Apr 07 2011: (Start)
G.f.: x*(10-9*x)/( (1-x)*(1-x-x^2) ).
a(n) = A022101(n) - 1. (End)
a(n) = F(n+2) + 9*F(n) - 1, where F = A000045. - G. C. Greubel, Aug 25 2017
MATHEMATICA
CoefficientList[Series[(10 x-9 x^2)/(1-2 x+x^3), {x, 0, 30}], x] (* Harvey P. Dale, Mar 05 2011 *)
PROG
(PARI) x='x+O('x^50); concat([0], Vec(x*(10-9*x)/( (1-x)*(1-x-x^2) ))) \\ G. C. Greubel, Aug 25 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved