OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (18,-109,252,-160).
FORMULA
G.f.: 1/((1-x)*(1-4*x)*(1-5*x)*(1-8*x)).
a(n) = -1/84 +4^(n+2)/3 -5^(n+3)/12 +2^(3n+7)/21. - Bruno Berselli, May 07 2013
a(n) = 18*a(n-1) - 109*a(n-2) + 252*a(n-3) - 160*a(n-4). - Wesley Ivan Hurt, May 17 2023
MATHEMATICA
CoefficientList[Series[1/((1 - x) (1 - 4 x) (1 - 5 x) (1 - 8 x)), {x, 0, 20}], x] (* Bruno Berselli, May 07 2013 *)
LinearRecurrence[{18, -109, 252, -160}, {1, 18, 215, 2160}, 30] (* Harvey P. Dale, Jul 28 2015 *)
PROG
(PARI) Vec(1/((1-x)*(1-4*x)*(1-5*x)*(1-8*x))+O(x^20)) \\ Bruno Berselli, May 07 2013
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-4*x)*(1-5*x)*(1-8*x)))); // Bruno Berselli, May 07 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved