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,-73,129,-70).
FORMULA
a(0)=1, a(1)=15, a(2)=152, a(3)=1314; for n>3, a(n) = 15*a(n-1) -73*a(n-2) +129*a(n-3) -70*a(n-4). - Vincenzo Librandi, Jul 07 2013
a(0)=1, a(1)=15; for n>1, a(n) = 12*a(n-1) -35*a(n-2) +2^n -1. - Vincenzo Librandi, Jul 07 2013
a(n) = (2*7^(n+3) - 5^(n+4) + 2^(n+6) - 5)/120. - Yahia Kahloune, Jul 07 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - x) (1 - 2 x) (1 - 5 x) (1 - 7 x)), {x, 0, 50}], x] (* Harvey P. Dale, Mar 01 2011 *)
LinearRecurrence[{15, -73, 129, -70}, {1, 15, 152, 1314}, 20] (* Vincenzo Librandi, Jul 07 2013 *)
PROG
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-2*x)*(1-5*x)*(1-7*x)))); /* or */ I:=[1, 15, 152, 1314]; [n le 4 select I[n] else 15*Self(n-1)-73*Self(n-2)+129*Self(n-3)-70*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Jul 07 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved