OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..922
Index entries for linear recurrences with constant coefficients, signature (29,-274,840).
FORMULA
a(n) = 29*a(n-1) - 274*a(n-2) + 840*a(n-3) for n>=3. - Vincenzo Librandi, Mar 15 2011
a(n) = 22*a(n-1) - 120*a(n-2) + 7^n for n>1 a(0)=1, a(1)=29. - Vincenzo Librandi, Mar 15 2011
a(n) = (3*12^n+2) - 5*10^(n+2) + 2*7^(n+2))/30. - Yahia Kahloune, Jun 30 2013
MATHEMATICA
CoefficientList[Series[1/((1-7x)(1-10x)(1-12 x)), {x, 0, 50}], x] (* G. C. Greubel, May 31 2018 *)
LinearRecurrence[{29, -274, 840}, {1, 29, 567}, 30] (* Harvey P. Dale, Apr 25 2020 *)
PROG
(PARI) x='x+O('x^30); Vec(1/((1-7*x)*(1-10*x)*(1-12*x))) \\ G. C. Greubel, May 31 2018
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-7*x)*(1-10*x)*(1-12*x)))); // G. C. Greubel, May 31 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Terms a(16) onward added by G. C. Greubel, May 31 2018
STATUS
approved