OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (21,-151,411,-280).
FORMULA
a(n) = -1/168 +125*5^n/24 -343*7^n/12 +512*8^n/21. - R. J. Mathar, Mar 11 2011
a(n) = 15*a(n-1) - 56*a(n-2) + (5^(n+1) - 1)/4, a(0)=1, a(1)=21. - Vincenzo Librandi, Mar 12 2011
MATHEMATICA
Table[-1/168 + 125*5^n/24 - 343*7^n/12 + 512*8^n/21, {n, 0, 50}] (* or *) LinearRecurrence[{21, -151, 411, -280}, {1, 21, 290, 3330}, 50] (* G. C. Greubel, Feb 28 2018 *)
PROG
(PARI) x='x+O('x^30); Vec(1/((1-x)*(1-5*x)*(1-7*x)*(1-8*x))) \\ G. C. Greubel, Feb 28 2018
(Magma) [-1/168 +125*5^n/24 -343*7^n/12 +512*8^n/21: n in [0..30]]; // G. C. Greubel, Feb 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved