OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (21, -155, 483, -540).
FORMULA
a(n) = (243/40)*9^n - (125/8)*5^n + (64/5)*4^n - (9/4)*3^n. - Neven Juric, Oct 22 2009
a(n) = 21*a(n-1) - 155*a(n-2) + 483*a(n-3) - 540*a(n-4); a(0)=1, a(1)=21, a(2)=286, a(3)=3234. - Harvey P. Dale, Aug 11 2011
MATHEMATICA
CoefficientList[Series[1/((1-3x)(1-4x)(1-5x)(1-9x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{21, -155, 483, -540}, {1, 21, 286, 3234}, 30] (* Harvey P. Dale, Aug 11 2011 *)
PROG
(Magma) [(243/40)*9^n - (125/8)*5^n + (64/5)*4^n - (9/4)*3^n: n in [0..20]]; // Vincenzo Librandi, Aug 12 2011
(PARI) Vec(1/((1-3*x)*(1-4*x)*(1-5*x)*(1-9*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved