OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (24, -171, 324).
FORMULA
a(n) = 24*a(n-1) - 171*a(n-2) + 324*a(n-3); a(1)=1, a(2)=24, a(3)=405. - Harvey P. Dale, Apr 26 2011
a(n) = (32*4^n - 27*3^n + 1)*3^(n-1)/2. - Bruno Berselli, May 16 2011
MATHEMATICA
LinearRecurrence[{24, -171, 324}, {1, 24, 405}, 30] (* or *)
CoefficientList[Series[1/((1-3x)(1-9x)(1-12x)), {x, 0, 30}], x] (* Harvey P. Dale, Apr 26 2011 *)
PROG
(Magma) [(32*4^n-27*3^n+1)*3^(n-1)/2 : n in [0..20]]; // Vincenzo Librandi, May 17 2011
(PARI) Vec(1/((1-3*x)*(1-9*x)*(1-12*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved