In combinatorial mathematics, the labelled enumeration theorem is the counterpart of the Pólya enumeration theorem for the labelled case, where we have a set of labelled objects given by an exponential generating function (EGF) g(z) which are being distributed into n slots and a permutation group G which permutes the slots, thus creating equivalence classes of configurations. There is a special re-labelling operation that re-labels the objects in the slots, assigning labels from 1 to k, where k is the total number of nodes, i.e. the sum of the number of nodes of the individual objects. The EGF f n ( z ) {\displaystyle f_{n}(z)} of the number of different configurations under this re-labelling process is given by
f n ( z ) = g ( z ) n | G | . {\displaystyle f_{n}(z)={\frac {g(z)^{n}}{|G|}}.}
In particular, if G is the symmetric group of order n (hence, |G| = n!), the functions f n ( z ) {\displaystyle f_{n}(z)} can be further combined into a single generating function:
F ( z , t ) = ∑ n = 0 ∞ f n ( z ) t n = ∑ n = 0 ∞ g ( z ) n n ! t n = e g ( z ) t {\displaystyle F(z,t)=\sum _{n=0}^{\infty }f_{n}(z)t^{n}=\sum _{n=0}^{\infty }{\frac {g(z)^{n}}{n!}}t^{n}=e^{g(z)t}}
which is exponential w.r.t. the variable z and ordinary w.r.t. the variable t.
The re-labelling process
We assume that an object ω {\displaystyle \omega } of size | ω | {\displaystyle |\omega |} represented by z | ω | / | ω | ! {\displaystyle z^{|\omega |}/|\omega |!} contains | ω | = m {\displaystyle |\omega |=m} labelled internal nodes, with the labels going from 1 to m. The action of G on the slots is greatly simplified compared to the unlabelled case, because the labels distinguish the objects in the slots, and the orbits under G all have the same size | G | {\displaystyle |G|} . (The EGF g(z) may not include objects of size zero. This is because they are not distinguished by labels and therefore the presence of two or more of such objects creates orbits whose size is less than | G | {\displaystyle |G|} .) As mentioned, the nodes of the objects are re-labelled when they are distributed into the slots. Say an object of size r 1 {\displaystyle r_{1}} goes into the first slot, an object of size r 2 {\displaystyle r_{2}} into the second slot, and so on, and the total size of the configuration is k, so that
r 1 + r 2 + ⋯ + r n = k . {\displaystyle r_{1}+r_{2}+\cdots +r_{n}=k.}
The re-labelling process works as follows: choose one of
( k r 1 , r 2 , … , r n ) {\displaystyle {k \choose r_{1},r_{2},\ldots ,r_{n}}}
partitions of the set of k labels into subsets of size r 1 , r 2 , … r n . {\displaystyle r_{1},r_{2},\ldots r_{n}.}
… excerpt ends here. Continue reading the full article.

