OFFSET
0,3
LINKS
R. Stanley, Parking Functions, 2011
MAPLE
p:= l-> (n-> n!*LinearAlgebra[Determinant](Matrix(n, (i, j)
-> (t->`if`(t<0, 0, l[i]^t/t!))(j-i+1))))(nops(l)):
g:= (n, i, l)-> `if`(i*(i+1)/2<n, 0, `if`(n=0, p(l),
g(n, i-1, l)+`if`(i>n, 0, g(n-i, i-1, [i, l[]])))):
a:= n-> `if`(n=0, 1, add(g(k-n, n-1, [n]), k=n..n*(n+1)/2)):
seq(a(n), n=0..10);
MATHEMATICA
p[l_] := Function[n, n!*Det[Table[Function [t,
If[t < 0, 0, l[[i]]^t/t!]][j - i + 1], {i, n}, {j, n}]]][Length[l]];
g[n_, i_, l_] := If[i(i+1)/2 < n, 0,
If[n == 0, p[l], g[n, i - 1, l] +
If[i > n, 0, g[n - i, i - 1, Prepend[l, i]]]]];
a[n_] := If[n == 0, 1, Sum[g[k - n, n - 1, {n}], {k, n, n(n+1)/2}]];
Table[a[n], {n, 0, 15}] (* Jean-François Alcover, Aug 22 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Dec 02 2015
STATUS
approved