OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
Richard P. Stanley, Parking Functions, 2011.
EXAMPLE
n = 18 = 2*3*3 = prime(1)*prime(2)*prime(2) encodes partition [1,2,2] having seven lambda-parking functions: [1,1,1], [1,1,2], [1,2,1], [2,1,1], [1,2,2], [2,1,2], [2,2,1], thus a(18) = 7.
MAPLE
with(numtheory):
p:= l-> (n-> n!*LinearAlgebra[Determinant](Matrix(n, (i, j)
-> (t->`if`(t<0, 0, l[i]^t/t!))(j-i+1))))(nops(l)):
a:= n-> p(sort([seq(pi(i[1])$i[2], i=ifactors(n)[2])])):
seq(a(n), n=1..100);
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]];
a[n_] := If[n==1, 1, p[Sort[Flatten[Table[Table[
PrimePi[i[[1]]], {i[[2]]}], {i, FactorInteger[n]}]]]]];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Aug 21 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Alois P. Heinz, Dec 02 2015
STATUS
approved