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,-197,606,-432).
FORMULA
a(n) = (35*9^(n+3) - 60*8^(n+3) + 28*6^(n+3) - 3)/840. - Yahia Kahloune, Jun 29 2013
a(n) = 24*a(n-1)-197*a(n-2)+606*a(n-3)-432*a(n-4). - Vincenzo Librandi, Jul 16 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - x) (1 - 6 x) (1 - 8 x) (1 - 9 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jul 16 2013 *)
PROG
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-6*x)*(1-8*x)*(1-9*x)))); // Vincenzo Librandi, Jul 16 2013
(Magma) I:=[1, 24, 379, 4974]; [n le 4 select I[n] else 24*Self(n-1)-197*Self(n-2)+606*Self(n-3)-432*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Jul 16 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
