OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..275
Index entries for linear recurrences with constant coefficients, signature (21,-98,-34,616,-532,-62,98,-7,-1).
FORMULA
G.f.: (x^4+2*x^3-23*x^2+4*x+10)*x^3 / ((x-1) * (x^2+14*x-1) * (x^2-2*x-1) * (x^2+2*x-1) * (x^2-6*x+1)). - Alois P. Heinz, Jun 20 2012
MAPLE
a:= n-> (Matrix(9, (i, j)-> `if`(i=j-1, 1, `if`(i=9,
[-1, -7, 98, -62, -532, 616, -34, -98, 21][j], 0)))^(n+3).
<<5, -1, 0, 0, 0, 0, 10, 214, 3491>>)[1, 1]:
seq (a(n), n=0..30); # Alois P. Heinz, Jun 20 2012
MATHEMATICA
LinearRecurrence[{21, -98, -34, 616, -532, -62, 98, -7, -1}, {0, 0, 0, 10, 214, 3491, 52001, 748788, 10636260}, 30] (* Jean-François Alcover, Feb 17 2016 *)
PROG
(PARI) concat(vector(3), Vec((x^4+2*x^3-23*x^2+4*x+10)*x^3 / ((x-1) * (x^2+14*x-1) * (x^2-2*x-1) * (x^2+2*x-1) * (x^2-6*x+1)) + O(x^30))) \\ Colin Barker, Feb 17 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 20 2012
STATUS
approved