OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (27,-239,753,-540).
FORMULA
a(n) = 27*a(n-1) - 239*a(n-2) + 753*a(n-3) - 540*a(n-4), with a(0)=1, a(1)=27, a(2)=490, a(3)=7530. [Harvey P. Dale, Mar 07 2012]
a(n) = (32*12^(n+3) - 77*9^(n+3) + 66*5^(n+3) -21)/7392. [Yahia Kahloune, Jun 27 2013]
MATHEMATICA
CoefficientList[Series[1/((1-x)(1-5x)(1-9x)(1-12x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{27, -239, 753, -540}, {1, 27, 490, 7530}, 30] (* Harvey P. Dale, Mar 07 2012 *)
PROG
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-5*x)*(1-9*x)*(1-12*x)))); // Vincenzo Librandi, Jul 12 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved