OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (15,-75,145,-84).
FORMULA
a(n) = 15*a(n-1) - 75*a(n-2) + 145*a(n-3) - 84*a(n-4), with a(0)=1, a(1)=15, a(2)=150, a(3)=1270. [Harvey P. Dale, Jun 09 2011]
a(n) = (7^(n+3) - 2*4^(n+4) + 3^(n+5) -2)/72. [Yahia Kahloune, Jun 26 2013]
a(0)=1, a(1)=15; for n>1, a(n) = 11*a(n-1) -28*a(n-2) +(3^n-1)/2. - Vincenzo Librandi, Jul 09 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - x) (1 - 3 x) (1 - 4 x) (1 - 7 x)), {x, 0, 20}], x] (* or *) LinearRecurrence[{15, -75, 145, -84}, {1, 15, 150, 1270}, 20] (* Harvey P. Dale, Jun 09 2011 *)
PROG
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-3*x)*(1-4*x)*(1-7*x)))); /* or */ I:=[1, 15, 150, 1270]; [n le 4 select I[n] else 15*Self(n-1)-75*Self(n-2)+145*Self(n-3)-84*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Jul 09 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved