OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (10,-9).
FORMULA
G.f.: 2*(1+x)/((1-x)*(1-9*x)).
Recurrence: a(n) = 10*a(n-1) - 9*a(n-2), n>=2, a(0) = 2, a(1) = 22.
a(n) = 2*A138894(n).
E.g.f.: (5*exp(9*x) - exp(x))/2. - G. C. Greubel, Feb 07 2021
MATHEMATICA
Table[(5*9^n - 1)/2, {n, 0, 19}]
LinearRecurrence[{10, -9}, {2, 22}, 20] (* Harvey P. Dale, Jun 15 2018 *)
PROG
(SageMath) [(5*9^n -1)/2 for n in (0..20)] # G. C. Greubel, Feb 07 2021
(Magma) [(5*9^n -1)/2: n in [0..20]]; // G. C. Greubel, Feb 07 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
L. Edson Jeffery, Feb 13 2015
STATUS
approved
