Monday, August 12, 2024

Combinatorics of partitions

Divided powers are an algebraic gadget that emulate, in an arbitrary ring, the functions xxn/n!x\mapsto x^n/n! for all integers nn, together with the natural functional equations that they satisfy. 

One of them is a nice binomial theorem without binomial coefficients : denoting xn/n!x^n/n! by x[n]x^{[n]}, one has (x+y)[n]=k=0nx[nk]y[k]. (x+y)^{[n]}=\sum_{k=0}^n x^{[n-k]} y^{[k]}.  

Another formula looks at what happens when one iterates the construction: if everything happens nicely, one has (x[n])[m]=1m!(xn/n!)m=1(n!)mm!xnm=(mn)!m!n!mx[mn]. (x^{[n]})^{[m]}=\frac1{m!}\left(x^n/n!\right)^m = \frac1{(n!)^m m!} x^{nm} = \frac{(mn)!}{m! n!^m} x^{[mn]}.  

 In the development of the theory, the remark that comes then is the necessary observation that the coefficient (mn)!/m!n!m(mn)!/{m! n!^m} is an integer, which is not obvious since it is written as a fraction. Two arguments are given to justify this fact. 

  1. The formula (mn)!m!n!m=k=1m(kn1n1) \frac{(mn)!}{m! n!^m} = \prod_{k=1}^{m} \binom{k n-1}{n-1} which the authors claim can be proved by induction
  2. The observation that (mn)!/m!n!m(mn)!/m!n!^m is the number of (unordered) partitions of a set with mnmn elements into mm subsets with nn elements.

The latter fact is a particular case of a more general counting question: if n=(n1,,nr)n=(n_1,\dots,n_r) are integers and N=n1++nrN=n_1+\dots+n_r, then the number of (unordered) partitions of a set with NN elements into subsets of cardinalities n1,,nrn_1,\dots,n_r is equal to N!ni!k>0mk(n)!,\frac{N!}{\prod n_i! \prod_{k>0} m_k(n)!}, where mk(n)m_k(n) is the number of occurences of kk in the sequence (n1,,nr)(n_1,\dots,n_r)

The goal of this blog post is to present a combinatorial argument for the first equality, and an alternative expression of the second number as a product of integers. We also give a formal, group theoretical proof, that this quotient of factorials solves the given counting problem. 

 \gdef\abs#1{\lvert#1\rvert} \gdef\Card{\operatorname{Card}}  

Counting partitions of given type 

 Let SS be a set with NN elements. A partition of SS is a subset {s1,,sr}\{s_1,\dots,s_r\} of P(S)\mathfrak P(S) consisting of nonempty, pairwise disjoint, subsets whose union is SS. Its *type* is the “multiset” of integers given by their cardinalities. Because no sis_i is empty, the type is a multiset of nonzero integers. It is slightly easier to authorize zero in this type; then a partition has to be considered as a multiset of subsets of SS, still assumed pairwise disjoint, so that only the empty subset can be repeated.

The group GG of permutations of SS acts on the set ΠS\Pi_S of partitions of SS. This action preserves the type of a partition, so that we get an action on the set ΠS,n\Pi_{S,n} on the set of partitions of type nn, of any multiset of integers nn. It is nonempty if and only if n=N\abs n=N.

This action is transitive: Given two partitions (s1,,sr)(s_1,\dots,s_r) and (t1,tr)(t_1,\dots t_r) with the same type (n1,,nr)(n_1,\dots,n_r), numbered so that si=ti=ni\abs{s_i}=\abs{t_i}={n_i} for all ii, we just define a permutation of SS that maps the elements of sis_i to tit_i.

By the orbit-stabilizer theorem, the number of partitions of type nn is equal to Card(G)/Card(Gs)\Card(G)/\Card(G_s), where GsG_s is the stabilizer of any partition ss of type nn. Since Card(S)=N\Card(S)=N, one has Card(G)=N!=n!\Card(G)=N!=\abs n!.

On the other hand, the stabilizer GsG_s of a partition (s1,,sr)(s_1,\dots,s_r) can be described as follows. By an element gg of this stabilizer, the elements of sis_i are mapped to some set sjs_j which has the same cardinality as sis_i. In other words, there is a morphism of groups from GsG_s to the subgroup of the symmetric group Sr\mathfrak S_r consisting of permutations that preserve the cardinality. This subgroup is a product of symmetric groups Smk\mathfrak S_{m_k}, for all k>0k> 0, where mkm_k is the number of occurrences of kk in (n1,,nr)(n_1,\dots,n_r). Here, we omit the factor corresponding to k=0k=0 because our morphism doesnt' see it.

This morphism is surjective, because it has a section. Given a permutation σ\sigma of {1,,r}\{1,\dots,r\} that preserves the cardinalities, we have essentially shown above how to construct a permutation of SS that induces σ\sigma, and this permutation belongs to GsG_s. More precisely, if we number the elements of sis_i as (xi,1,,xi,ni)(x_{i,1},\dots,x_{i,n_i}), we lift σ\sigma to the permutation that maps xi,jx_{i,j} to xσ(i),jx_{\sigma(i),j} for all i,ji,j. This makes sense since ni=nσ(i)n_{i}=n_{\sigma(i)} for all ii.

The kernel of this morphism Gsk>0SmkG_s\to \prod_{k>0} \mathfrak S_{m_k} consists of permutations that fix each sis_i. It is clearly equal to the product of the symmetric groups Sni\prod \mathfrak S_{n_i}.

One thus has Card(Gs)=ni!k>0mk!\Card(G_s)=\prod n_i! \prod_{k>0} m_k!, as was to be shown.

A combinatorial interpretation of the first relation


As we said above, that relation (mn)!mn!m=k=1m1(kn1n1) \frac{(mn)!}{m^ n!^m} = \prod_{k=1}^{m-1} \binom{kn-1}{n-1} can be proved by induction, just playing with factorials, but we want a combinatorial interpretation for it. (Here we assume that n1n\geq 1.)
By the preceding paragraph, the left hand side is the number of partitions of a set with mnmn elements of type (n,,n)(n,\dots,n). We may assume that this set is numbered {1,,mn}\{1,\dots,mn\}.

Such a partition can be defined as follows. First, we choose the subset that contains 11: this amounts to choosing n1n-1 elements among {2,,mn}\{2,\dots,mn\}, and there are (mn1n1)\binom{mn-1}{n-1} possibilities. Now, we have to choose the subset that contains the smallest element which is not in the first chosen subset. There are n1n-1 elements to choose among the remaining mnn1=(m1)n1mn-n-1=(m-1)n-1 ones, hence ((m1)n1n1)\binom{(m-1)n-1}{n-1} possibilities. And we go on in the same way, until we have chosen the mm required subsets. (For the last one, there is course only one such choice, and notice that the last factor is (n1n1)=1\binom{n-1}{n-1}=1.)

An integral formula for the number of partitions of given type


Finally, we wish to give an alternating formula for the number of partitions of given type of a set SS that makes it clear that it is an integer. Again, we can assume that the set SS is equal to {1,,N}\{1,\dots,N\} and that n=(n1,,nr)n=(n_1,\dots,n_r) is a multiset of integers such that n=N\abs n=N.

Let us write nn in an other way, n=(0m0,1m1,)n=(0^{m_0},1^{m_1},\dots), meaning that 00 is repeated m0m_0 times, 11 is repeated m1m_1 times, etc. One has N=kmkN=\sum k m_k. The idea is that we can first partition SS into a subsets of cardinalities m1m_1, 2m22m_2,… and then subpartition these subsets: the first one into m1m_1 subsets with one element, the second into m2m_2 subsets with two elements, etc.

The number of ordered partitions with m1m_1, 2m22m_2… elements is the multinomial number (Nm1,2m2,). \binom{N}{m_1,2m_2,\dots}. And the other choice is the product of integers as given in the preceding section. This gives n!ini!k>0mk(n)!=(Nm1,2m2,)k>0(kmk)!k!mkmk(n)!. \frac{\abs n!}{\prod_i n_i! \prod_{k>0}m_k(n)!} = \binom{N}{m_1,2m_2,\dots}\prod_{k>0} \frac{(km_k)!}{k!^{m_k} m_k(n)!}. We can also write the fractions that appear in the product as integers: n!ini!k>0mk(n)!=(Nm1,2m2,)k>0m=1mk(km1k1). \frac{\abs n!}{\prod_i n_i! \prod_{k>0}m_k(n)!} =\binom{N}{m_1,2m_2,\dots} \prod_{k>0} \prod_{m=1}^{m_k} \binom {km-1}{k-1}.