OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,2).
FORMULA
a(n) = 9*a(n-1) + 2*a(n-2).
E.g.f.: 2*exp(9*x/2)*sinh(sqrt(89)*x/2)/sqrt(89). - Stefano Spezia, Apr 06 2023
MATHEMATICA
Join[{a=0, b=1}, Table[c=9*b+2*a; a=b; b=c, {n, 60}]] (* Vladimir Joseph Stephan Orlovsky, Jan 27 2011 *)
LinearRecurrence[{9, 2}, {0, 1}, 30] (* Vincenzo Librandi, Nov 14 2012 *)
CoefficientList[Series[x/(1-9x-2x^2), {x, 0, 30}], x] (* Harvey P. Dale, Aug 14 2023 *)
PROG
(Sage) [lucas_number1(n, 9, -2) for n in range(0, 19)] # Zerinvary Lajos, Apr 26 2009
(Magma) [n le 2 select n-1 else 9*Self(n-1) + 2*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 14 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-9*x-2*x^2))) \\ G. C. Greubel, Jan 06 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Extended by T. D. Noe, May 23 2011
STATUS
approved