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,-185,522,-360)
FORMULA
a(n) = 125*5^n/28 -36*6^n/5 +288*12^n/77 -1/220.
a(0)=1, a(1)=24, a(2)=391, a(3)=5466; for n>3, a(n) = 24*a(n-1) -185*a(n-2) +522*a(n-3) -360*a(n-4). - Vincenzo Librandi, Jul 12 2013
MAPLE
A022448:=n->125*5^n/28 - 36*6^n/5 + 288*12^n/77 - 1/220; seq(A022448(n), n=0..20); # Wesley Ivan Hurt, Feb 15 2014
MATHEMATICA
CoefficientList[Series[1/((1-x)*(1-5*x)*(1-6*x)*(1-12*x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jul 12 2013 *)
PROG
(Magma) I:=[1, 24, 391, 5466]; [n le 4 select I[n] else 24*Self(n-1)-185*Self(n-2)+522*Self(n-3)-360*Self(n-4): n in [1..25]]; /* or */ m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-5*x)*(1-6*x)*(1-12*x)))); // Vincenzo Librandi, Jul 12 2013
(PARI) x='x+O('x^30); Vec(1/((1-x)*(1-5*x)*(1-6*x)*(1-12*x))) \\ G. C. Greubel, Feb 28 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved