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,-179,420)
FORMULA
a(n) = 5^(n+2)/14 -7^(n+2)/10 +12^(n+2)/35. - R. J. Mathar, Mar 15 2011
a(0)=1, a(1)=24, a(2)=397, a(n)=24*a(n-1)-179*a(n-2)+420*a(n-3). [Harvey P. Dale, Dec 10 2011]
a(n) = 19*a(n-1) -84*a(n-2) +5^n. - Vincenzo Librandi, Jul 03 2013
MATHEMATICA
CoefficientList[Series[1/((1-5x)(1-7x)(1-12x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{24, -179, 420}, {1, 24, 397}, 30] (* Harvey P. Dale, Dec 10 2011 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-5*x)*(1-7*x)*(1-12*x)))); /* or */ I:=[1, 24, 397]; [n le 3 select I[n] else 24*Self(n-1)-179*Self(n-2)+420*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jul 03 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved