OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (28,-289,1302,-2160).
FORMULA
a(n) = 28*a(n-1) - 289*a(n-2) + 1302*a(n-3) - 2160*a(n-4). - Vincenzo Librandi, Feb 23 2012
a(n) = (9^(n+3) - 2*8^(n+3) + 2*6^(n+3) - 5^(n+3))/12. - Yahia Kahloune, Jun 03 2013
MATHEMATICA
CoefficientList[Series[1/((1-5x)(1-6x)(1-8x)(1-9x)), {x, 0, 20}], x] (* Vincenzo Librandi, Feb 23 2012 *)
PROG
(Magma) I:=[1, 28, 495, 7070]; [n le 4 select I[n] else 28*Self(n-1)-289*Self(n-2)+1302*Self(n-3)-2160*Self(n-4): n in [1..40]]; // Vincenzo Librandi, Feb 23 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved