OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..920
Index entries for linear recurrences with constant coefficients, signature (31,-318,1080)
FORMULA
a(n) = 31*a(n-1) - 318*a(n-2) + 1080*a(n-3), n >= 3. - Vincenzo Librandi, Mar 18 2011
a(n) = 22*a(n-1) - 120*a(n-2) + 9^n, n >= 2. - Vincenzo Librandi, Mar 18 2011
a(n) = -5*10^(n+1) + 3*9^(n+1) + 2*12^(n+1). - R. J. Mathar, Mar 20 2011
MATHEMATICA
CoefficientList[Series[1/((1-9*x)*(1-10*x)*(1-12*x)), {x, 0, 50}], x] (* G. C. Greubel, Feb 09 2018 *)
LinearRecurrence[{31, -318, 1080}, {1, 31, 643}, 20] (* Robert G. Wilson v, Feb 11 2018 *)
PROG
(PARI) x='x+O('x^30); Vec(1/((1-9*x)*(1-10*x)*(1-12*x))) \\ G. C. Greubel, Feb 09 2018
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!(1/((1-9*x)*(1-10*x)*(1-12*x)))); // G. C. Greubel, Feb 09 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved