OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-21,10).
FORMULA
G.f.: (1+8*x-99*x^2)/((1-x)^2*(1-10*x)).
a(n) = 12*a(n-1) - 21*a(n-2) + 10*a(n-3) for n > 2.
E.g.f.: exp(x)*(exp(9*x) + 10*x). - Elmo R. Oliveira, Aug 29 2024
MATHEMATICA
Table[(10^n + 10 n), {n, 0, 30}] (* or *) CoefficientList[Series[(1 + 8 x - 99 x^2)/((1 - x)^2 (1 - 10 x)), {x, 0, 30}], x]
PROG
(Magma) [10^n + 10*n: n in [0..25]]; /* or */ I:=[1, 20, 120]; [n le 3 select I[n] else 12*Self(n-1)-21*Self(n-2)+10*Self(n-3): n in [1..30]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 03 2013
STATUS
approved