OFFSET
4,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 4..200
FORMULA
a(n) = n^(n-8) * (n-3)*(n-2)*(n-1)*(n^3 + 21*n^2 + 202*n + 840)/48. - Vaclav Kotesovec, Sep 06 2014
MAPLE
T:= proc(n, m) option remember; `if`(n<0, 0, `if`(n=m, 1,
`if`(m<1 or m>n, 0, add(binomial(n-1, j-1)*j^(j-2)*
T(n-j, m-1), j=1..n-m+1))))
end:
a:= n-> T(n, 4):
seq(a(n), n=4..30);
MATHEMATICA
Table[n^(n-8) * (n-3)*(n-2)*(n-1)*(n^3 + 21*n^2 + 202*n + 840)/48, {n, 4, 20}] (* Vaclav Kotesovec, Sep 06 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 10 2014
STATUS
approved