OFFSET
0,3
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
a(n) = 12*a(n-1) - 21*a(n-2) + 10*a(n-3) for n > 2.
G.f.: (1-12*x+101*x^2)/((1-10*x)*(1-x)^2). - Vincenzo Librandi, Jul 06 2012
E.g.f.: exp(x)*(exp(9*x) - 10*x). - Elmo R. Oliveira, Aug 29 2024
MATHEMATICA
CoefficientList[Series[(1-12*x+101*x^2)/((1-10*x)*(1-x)^2), {x, 0, 40}], x] (* Vincenzo Librandi, Jul 06 2012 *)
LinearRecurrence[{12, -21, 10}, {1, 0, 80}, 30] (* Harvey P. Dale, May 31 2026 *)
PROG
(Magma) [10^n-10*n: n in [0..25]];
(PARI) a(n)=10^n-10*n \\ Charles R Greathouse IV, Jul 06 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 26 2011
STATUS
approved
