The Pólya enumeration theorem (PET), also known as Redfield–Pólya's Theorem, is a theorem in combinatorics, generalizing Burnside's lemma about number of orbits. This theorem was first discovered and published by John Howard Redfield in 1927 but its importance was overlooked and Redfield's publication was not noticed by most of mathematical community. Independently the same result was proved in 1937 by George Pólya, who also demonstrated a number of its applications, in particular to enumeration of chemical compounds.
The PET gave rise to symbolic operators and symbolic methods in enumerative combinatorics and was generalized to the fundamental theorem of combinatorial enumeration.
Suppose you have a set of n slots and a set of objects being distributed into these slots and a generating function f(a, b, ...) of the objects by weight. Furthermore there is a permutation group A acting on the slots that creates equivalence classes of filled slot configurations (two configurations are equivalent if one may be obtained from the other by a permutation from A). Then the generating function of the equivalence classes by weight, where the weight of a configuration is the sum of the weights of the objects in the slots, is obtained by evaluating the cycle index Z(A) of A i.e.
Consider the set of all mappings . We can define the weight of a function to be
Every subgroup of the symmetric group on elements, , acts on through permutations. If is one such subgroup, an equivalence relation on is defined as
Therefore we can safely define . In other words, permuting the summands of a sum does not change the value of the sum.
Let
The generating function by weight of the source objects is
Let
The generating function of the filled slot configurations is
The graphs on three vertices without taking symmetries into account are shown at right. There are i.e. 8 of them ( gives the number of pairs of vertices, i.e. edges, chosen from among three vertices).
We want to enumerate these graphs taking symmetries into account. There are only four nonisomorphic graphs, also shown at right.
In this problem is the set of all edges between vertices and is . Each mapping defines a graph on the vertices. If we define , then is the number of edges in the graph resulting from . Clearly, - there are 2 elements in , one of weight 0 and one of weight 1.
The graph preserving edge permutations are directly generated by permutations of the vertices. Therefore, the subgroup of acting on the edges (the edge permutation group of the graph) is of size .
The cycle index of the permutation group of the edges is
It follows from the enumeration theorem that the generating function of the non-isomorphic graphs on 3 vertices is
The cycle index of the edge permutation group for graphs on four vertices, which has degree six (there are six edges) and order twenty-four (each vertex permutation of the four vertices induces an edge permutation) is:
Hence
A program that computes the generating function of the nonisomorphic graphs on vertices as well as a detailed description of the algorithm used can be found in the GNUstep cookbook.
The set T3 of rooted ternary trees consists of rooted trees where every node has exactly three children (leaves or subtrees). Small ternary trees are shown at right. Note that there is a direct bijection between ternary trees with N non-leaf vertices and arbitrary trees with N vertices and degree at most 3.
Two trees that can be obtained from one another by repeatedly permuting the children of some node are considered equivalent. In other words, the group that acts on the children of a node is the symmetric group S3.
We use the following recursive decomposition of T3: an element of T3 is either a leaf of size zero, or a node with three children, where the order of the children is not important. The slots in this problem are the three slots where the children are attached to their parent node, and the objects that go into them are the elements of T3 itself. The group that acts on the slots is the symmetric group S3 with cycle index
It follows that the functional equation for the generating function T(z) of the set T3 of rooted ternary trees is
This translates into the following recurrence relation for the number tn of rooted ternary trees on n nodes:
The first few values of are
Suppose you have a necklace containing beads of different colors, where every color is present exactly twice. How many different necklaces are there where two necklaces are considered equivalent if there exists a sequence of rotations and/or reflections that transforms one into the other?
In this problem the slots are the locations where beads may be placed on the necklace and the objects that go into them are the beads. The group that acts on the slots is the dihedral group The three types of symmetries that may occur are illustrated at right for the case
They are: rotations, reflections in an axis passing through opposite beads and reflections in an axis passing through opposite links.
The cycle index of the dihedral group is is
Let the variable represent the first color, the second, the third and so on, up to . The number of necklaces is then given by
Considering the rotations first, we see that only and contribute, namely through
and
The reflections in an axis passing through opposite beads contribute
or
because there are ways to choose a color from the first term, and ways to choose the remaining colors from the second term (sum of squares raised to the th power).
Finally, the reflections in an axis passing through opposite links contribute
This yields the closed form expression for the number of necklaces containing different colors exactly twice:
The first few terms are
This problem appeared on the newsgroup es.ciencia.matematicas.
Suppose you have an ordinary cube in three-space whose faces may take on one of three colors and are being permuted by the automorphisms of the cube (rotations in three-space). Here the slots are the six faces and the objects that go into them are the three colors. The object generating function by weight is
which indicates that there are three colors and every color has weight one.
The cycle index of the permutation group C of the faces is
It follows that the generating function of the equivalence classes i.e. colored cubes taking symmetries into account is
or
3,x,y^2,z^3+3,x^2,y,z^3+2,x^3,z^3+2,y^4,z^2+3,x,y^3,z^2& {}quad +
6,x^2,y^2,z^2+3,x^3,y,z^2+2,x^4,z^2+y^5,z&{}quad + 2,x,y^4,z+3,
x^2,y^3,z+3,x^3,y^2,z+2,x^4,y,z+x^5,z+y^6+x,y^5& {}quad + 2,x^2,y^
4+2,x^3,y^3+2,x^4,y^2+x^5,y+x^6.end{align}
This says e.g. that there is one cube using color x on five faces and color z on the sixth, and there are six cubes using x, y, and z twice:
It also says that there are three cubes using color x on three faces, color y on two faces and color z on the remaining face:
Note that and there are 57 distinct colored cubes in total when there are three colors.
The following statement of the theorem is for the general multivariate case as in the example of the colored necklaces and cubes.
Let be a group acting on a set (the "slots") and consider the set of all functions from a set to a weighted set (the objects) with weight function (the "filled slot configurations"), where the weight of a function f is the sum of the weights of its range.
The Pólya enumeration theorem states that the sum of the weights of the orbits of on (the equivalence classes of configurations induced by X) is given by
When is a monomial in the variables (including constants) we have
The Pólya enumeration theorem follows from Burnside's lemma, which says that the number of orbits (equivalence classes of filled slot configurations) is the average of the number of elements of fixed by the permutation g of A over all permutations g. This value is a number and yields the count of the orbits, whereas PET enumerates orbits by weight, a more detailed classification, from which the count may be recovered by setting all variables of the weight function to one.
Applying the lemma to orbits of weight , the number of orbits of this weight is
It follows that the generating function by weight of the points fixed by g is the product of the above term over all cycles of g, i.e.