OFFSET
0,3
COMMENTS
If n=Sum_i[n_i], the number of set partitions can be written as sp=n!/Prod_i,j(n_i!m_j!) where m_j is the multiplicity of the integer j in the n_i's. For certain integers, this number is maximized by more than one partition.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
EXAMPLE
For n=9, {1,1,2,2,3} maximizes the number of set partitions, while for n=10, this number is maximized by {1,2,3,4}, {1,1,2,3,3}, {1,2,2,2,3} and {1,1,1,2,2,3}.
MATHEMATICA
Prod[l_] := Apply[Times, Map[#! &, l]]*
Apply[Times, Map[Count[l, #]! &, Range[Max[Length[l]]]]]
b[n_] := (Min[Map[Prod, IntegerPartitions[n]]])
a[n_] := Count[Map[Prod, IntegerPartitions[n]], b[n]]
Table[a[n], {n, 0, 20}] (* after A102356 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrei Cretu, Feb 22 2015
EXTENSIONS
More terms from Alois P. Heinz, Feb 25 2015
STATUS
approved