Introduction to Polya Enumeration
How many genuinely different ways are there to color the six faces of a cube using three colors? We agree that two colorings are "the same" whenever one can be rotated into the other. A naive count of colorings wildly overcounts. This is because rotating the cube produces many colorings we would call identical. This is the central question of counting under symmetry. It appears whenever a finite group acts on a finite set of configurations. Examples include necklaces under rotation, molecules under spatial symmetry, switching networks. It also includes graphs on labeled vertices considered up to relabeling. The idea that resolves this is deceptively simple. Instead of counting configurations directly, count how many configurations each symmetry fixes. Then average over the group. This averaging principle is Burnside's Lemma (also called the Cauchy–Frobenius lemma). It converts an intractable-looking counting problem into a sum of much simpler fixed-point counts. When the configurations are functions from a set of positions to a set of colors, the fixed-point counts have a beautiful structure. This structure is controlled entirely by the cycle type of each permutation. It is encoded compactly in a single polynomial: the cycle index of the group. Pólya enumeration takes this one step further. Rather than merely counting equivalence classes of colorings, it produces a full generating function. This function tracks how many times each color is used. It simultaneously handles all weighted counting questions at once. This upgrade from Burnside's raw counting to a weighted generating function is the Pólya Enumeration Theorem. It was also independently found by de Bruijn. It is one of the crown jewels of enumerative combinatorics. It unifies group theory, generating functions, and combinatorial counting. This article builds the theory from the ground up. It states and proves Burnside's Lemma. It introduces the cycle index polynomial of a permutation group. It proves the Pólya Enumeration Theorem itself. Along the way we compute the cycle index of the cyclic and dihedral groups. We count necklaces and cube colorings by hand. We highlight exactly where the machinery needs each of its hypotheses.
- Configurations related by a symmetry group should be counted once per equivalence class, not once per raw configuration.
- Burnside's Lemma: the number of orbits equals the average number of fixed points of the group elements.
- The cycle index packages the cycle-type data of every group element into one polynomial.
- Pólya's Theorem substitutes a generating function for colors into the cycle index to produce the full weighted count of colorings, all at once.
- The theorem specializes both to plain orbit-counting (Burnside) and to counting by exact color multiset (via coefficient extraction).
- Key idea: average fixed-point counts over a symmetry group, and track color-usage by substituting power sums of a generating function into the group's cycle index.
Where this lives today
Pólya enumeration is the standard tool for counting combinatorial structures up to symmetry, and it appears across many fields. In chemistry, it counts distinct isomers of molecules (e.g. substituted benzene rings, or alkanes) where atoms occupying symmetric positions can be swapped by the molecule's point-group symmetries — Pólya's original motivation. In graph theory, it counts non-isomorphic labeled structures such as graphs on vertices up to relabeling, colorings of graph vertices/edges up to automorphism, and necklaces/bracelets (related to counting binary strings up to rotation and reflection, connecting to The Twelvefold Way and to counting formulas involving Stirling Numbers of the First Kind when cycle-index computations of the symmetric group arise). In computer science, it underlies counting distinct Boolean functions up to variable permutation (switching theory, circuit enumeration), counting distinct states in combinatorial games with board symmetries (e.g. tic-tac-toe boards up to the dihedral group of order 8), and hashing/canonicalization schemes that must respect symmetry classes. In statistics and design theory, cycle-index methods count non-isomorphic block designs and combinatorial designs under relabeling of treatments. In physics, closely related cycle-index and generating-function techniques appear in statistical mechanics partition function computations for systems with symmetric configurations (e.g. counting distinguishable spin configurations on symmetric lattices). The theorem's core mechanism — replace each formal variable in a symmetric function by a power sum of a generating variable — also foreshadows deeper connections to symmetric function theory and representation theory of the symmetric group, areas built directly on the Permutations and cycle-type ideas introduced here.
Ask the tutor: Can you walk me through computing the cycle index for coloring the edges (not faces) of a cube under rotation?
Let be a finite group acting on a finite set . For , write for the action of on .
- The orbit of is . Orbits partition .
- The fixed-point set of is , and is the number of points fixed by .
- Now let act on a finite set (the "positions," e.g. beads on a necklace, faces of a cube), acting by permutations. Let be a finite set of "colors." The set of colorings is , the set of functions , and acts on by
Two colorings are considered equivalent iff they lie in the same -orbit.
- For acting on with , write the disjoint cycle decomposition of (as a permutation of ) and let denote the number of cycles of length , so .
- The cycle index of (acting on , ) is the polynomial in indeterminates defined by
Intuition
Picture a square with four corners, and the group of its four rotations (by ) acting on the corners. If we 2-color the corners, the raw count of colorings is , but many of these are rotations of each other. Burnside's insight is that we don't need to explicitly find the orbits and count them — we only need to know, for each single rotation, how many colorings that rotation leaves unchanged, and then average. A rotation fixes a coloring exactly when the coloring is constant on each of the rotation's cycles (as a permutation of the corners). The identity has 4 cycles of length 1 (fixes all 16 colorings); the and rotations are single 4-cycles (fix colorings constant on all 4 corners: colorings each); the rotation is two 2-cycles (fixes colorings constant on each pair: colorings). Averaging: genuinely different colorings. The cycle index packages exactly this cycle-count data — for every group element, record its cycle type as a monomial, then average the monomials. Substituting recovers Burnside's count; substituting a full generating function for colors gives the finer weighted count that is Pólya's theorem.
Let be a finite group acting on a finite set . Let denote the set of orbits. Then
We use the technique of double counting: we count the set
in two different ways.
Counting by . For a fixed , the number of pairs with that is exactly , the number of points fixed by . Hence
Counting by . For a fixed , the set of with is the stabilizer , which is a subgroup of (closed under the group operation and inverses, since and imply , and applying to gives ). Hence
By the Orbit–Stabilizer Theorem, for each the map is a well-defined bijection from the set of left cosets of in to . (Well-defined and injective: . Surjective onto the orbit by definition of orbit.) By Lagrange's theorem, the number of cosets of is , so
Substituting,
Group this sum by orbit. Fix an orbit ; every contributes the same term to the sum, and there are such , so the orbit contributes exactly to the total. Summing over all orbits,
Equating the two expressions for :
and dividing by (nonzero since is a group, hence nonempty) gives the claimed formula.
∎Let act on a finite set with by permutations, and let act on as in the Definition, where . For , let denote the total number of cycles in the disjoint cycle decomposition of as a permutation of (cycles of every length, including fixed points as -cycles). Then
A coloring satisfies iff for all , equivalently (replacing by ) for all . Iterating, must be constant along every cycle of : if is a cycle, then takes the same value on every element of that cycle. Conversely, if is constant on each cycle of , then trivially for all , so . Thus -fixed colorings correspond bijectively to functions from the set of cycles of to : choose a color independently for each cycle. Since has cycles and , there are exactly such choices.
∎Let be a finite group acting on a finite set of positions, , with cycle index
Let be a set of colors, and to each color assign a formal weight lying in a commutative ring of formal power series (e.g. polynomials in variables , or a single variable if colors are unweighted by type). Define the color generating function
Extend the weight to colorings multiplicatively: . Then the generating function for -orbits of colorings, weighted by total color content, is
meaning: substitute into the cycle index, for each . In particular, if every color has weight (unweighted counting), then for every , and the theorem reduces to
which recovers the count of orbits via Burnside's Lemma applied to .
We first establish that the weighted orbit sum equals the weighted sum of fixed colorings, averaged over ; this is a weighted refinement of Burnside's Lemma, proved by the identical double-counting technique.
Step 1 (weighted Burnside). For a -orbit , all colorings have the same weight : if for some , then
where the last equality is a re-indexing of the product over , which is a bijection . So is constant on orbits; call this common value . Now consider the sum
Group the inner sum by orbit: exactly as in the proof of Burnside's Lemma, for fixed , the number of fixing is . So
Grouping by orbit : each contributes , and there are such , contributing per orbit. Hence
Therefore
Step 2 (evaluating the inner sum via cycle structure). Fix and recall from the proof of the Lemma above that is -fixed iff is constant on each cycle of . So -fixed colorings correspond to a free choice of color for each cycle of . If has cycles of lengths , then a -fixed coloring assigns a color to every position in cycle , and
Summing over all choices of , the sum factors across cycles (since each ranges independently over ):
using the definition . Since has exactly cycles of length for each , we can regroup this product by cycle length:
Step 3 (assemble). Substituting into Step 1,
which is precisely the cycle index polynomial with each formal variable replaced by — since is by definition . This proves the general formula.
Step 4 (unweighted specialization). If for every (i.e. we only care whether colorings are distinguishable, with a trivial one-variable weight , or equivalently we simply set from the start and read ), then for every , independent of . So the formula becomes , and for every , so the left side is just , the number of orbits — matching Burnside's Lemma applied with , since by the Lemma above and .
∎Worked examples
Example 1: Necklaces with two colors of unequal weight, cyclic group of length 6. Consider a necklace of beads arranged in a circle, and let , the cyclic group of rotations, act on the bead-positions. We want to count necklaces with beads colored Red or Blue, and specifically we want the generating function tracking the number of Red beads used — this distinguishes it from plain Burnside counting. First we need the cycle index of acting on points by rotation. The rotation (rotating by positions, ) decomposes into cycles, each of length . Compute for each :
- (): , so cycles of length : type .
- : , one cycle of length : type .
- : , two cycles of length : type .
- : , three cycles of length : type .
- : , two cycles of length : type .
- : , one cycle of length : type .
So
Now assign weight to Red and weight to Blue, so , and in general . By the Pólya Enumeration Theorem,
Let us expand each term. , so Sum all four:
So the bracket totals , and dividing by :
Interpretation. The coefficient of is the number of distinct necklaces (up to rotation) with exactly Red beads and Blue beads. So: necklace with Red, with Red, with Red, with Red, with Red, with Red, with Red. As a check, the total number of necklaces (setting , i.e. plain Burnside with colors) is , matching . Also, as a sanity check on total beads, raw 2-colorings, and indeed is consistent with Burnside's total.
Example 2: Cube face colorings with three colors, rotation group. Let be the faces of a cube, and let be the rotation group of the cube, , acting on faces. We compute the cycle index of this action and then count -colorings up to rotation (the motivating question from the overview), plus the weighted refinement tracking how many faces get each of the three colors. The rotation group of the cube consists of the following conjugacy classes, acting on the faces:
- Identity: element, cycle type on faces: six -cycles .
- Face-axis rotations by or (through centers of opposite faces): there are axes nontrivial quarter-turns elements. Each such rotation fixes the faces on its axis (two -cycles) and cycles the remaining side faces in one -cycle: type .
- Face-axis rotations by : elements (one per axis). Each fixes the axis faces and swaps the side faces in two -cycles: type .
- Vertex-axis rotations by or (through opposite vertices): there are axes nontrivial rotations elements. Each such rotation permutes all faces in two -cycles (the three faces around each of the two vertices on the axis): type .
- Edge-axis rotations by (through midpoints of opposite edges): there are axes, nontrivial rotation each elements. Each permutes the faces in three -cycles: type .
Check the count: . ✓. So the cycle index is
Plain count with 3 colors (Burnside). Set every :
Compute each term: ; ; ; ; . Sum: . Divide by :
So there are 57 distinct colorings of a cube's faces using (up to) three colors, up to rotation — a classical, checkable answer.
Weighted refinement. Now assign weight to color and weight to each of colors , so and . Pólya's theorem gives the generating function for the number of faces colored with color :
As a partial check, we verify the coefficient of (colorings using none of color , i.e. using only colors — a -coloring count). Setting :
Indeed, the number of -colorings of a cube's faces up to rotation is a well-known value, , consistent with the classical count of cube -colorings (this can be independently checked directly: colorings by number of "color-1" faces give , summing to ). This cross-check confirms the cycle index and the substitution were both computed correctly.
The proof of the weighted Burnside step (Step 1 of the Pólya proof) crucially used that is constant on orbits, which followed from being built as a product over a bijective re-indexing of the position set under the same group action that defines the coloring action on . If instead we let a group act on the colorings in some way not induced by a permutation action on , the cycle-index machinery collapses. Concretely: let , , so has colorings: RR, RB, BR, BB. Let act on not by permuting positions, but by the "color-flip" rule (swap RedBlue at both positions simultaneously, without touching position labels): so is not what happens; instead under color flip is actually recolors position 1 from R to B and position 2 from B to R, giving BR — this happens to coincide with a position-swap in this toy case, so let's make it clearly different: define to swap colors only at position 1, leaving position 2 fixed: , , , . This is a perfectly good involution of (it's its own inverse), so acts on and Burnside's Lemma itself still applies fine to count orbits of this action (orbits: , , so orbits; check: , since no coloring is fixed, average ✓). But is not induced by any permutation of the position set — it cannot be written as for any permutation of , since such position-induced actions always send a "constant" coloring (RR or BB) to another constant coloring, whereas here is not constant. Consequently the cycle-index / Pólya apparatus does not apply to this action at all: there is no cycle type on positions to record, no factorization of fixed colorings into "one free choice per cycle," and the weight-multiplicativity argument in Step 2 of the proof (which relied on -fixed colorings being exactly those constant on position-cycles) breaks down completely. This shows the hypothesis that acts on via a permutation action on (not an arbitrary action on the coloring set) is essential to Pólya's theorem, even though the weaker Burnside's Lemma survives unchanged for an arbitrary action on any finite set.
Scope, edge cases & common traps
| Situation | What to watch for |
|---|---|
| trivial () | Cycle index is ; Pólya reduces to ordinary generating function , no collapsing occurs. |
| infinite | Theorem requires finite; cycle index polynomial is undefined otherwise. |
| Colors weighted with multiple variables | Still valid: substitute where means each raised to its exponent times (i.e. ). |
| Action not induced by permuting positions | Pólya's theorem (cycle-index substitution) fails; only the cruder Burnside's Lemma on the coloring set may still apply. |
| Confusing (total cycles) with (cycles of length ) | The unweighted Lemma uses total cycle count ; the cycle index tracks each length separately — necessary for the weighted theorem. |
The mathematician behind it
Origins · 1 minGeorge Pólya and how this was discovered
Pólya made foundational contributions across combinatorics, probability, number theory, and mathematical pedagogy — he is equally famous for his 1945 book How to Solve It on problem-solving heuristics. His 1937 paper "Kombinatorische Anzahlbestimmungen für Gruppen, Graphen und chemische Verbindungen" introduced the cycle-index enumeration technique now bearing his name, originally motivated by counting distinct chemical isomers (molecules related by rotational symmetry). The counting lemma underlying his theorem had actually been found earlier by William Burnside (who himself attributed it to Cauchy and Frobenius), but Pólya's generating-function upgrade — substituting power sums of a color generating function into the cycle index — was genuinely new and vastly more powerful for applications.
Is Burnside's Lemma the same thing as the Pólya Enumeration Theorem?
No. Burnside's Lemma is a general statement about any finite group acting on any finite set: the number of orbits equals the average number of fixed points. Pólya's theorem is a specialization to the particular situation where the set being acted on is a set of colorings , and it goes further by producing a full generating function (tracking exact color usage) rather than a single orbit count. Setting all cycle-index variables to recovers the Burnside orbit count as a special case of Pólya's formula, so Pólya's theorem strictly contains and refines Burnside's Lemma in this coloring context, but Burnside's Lemma itself is more general in the sense that it applies to arbitrary group actions, not just coloring actions.
Why does the cycle index need variables instead of just one variable?
Because the weighted version of the counting problem needs to track cycles of every possible length separately: a cycle of length forces positions to share one color, contributing a term rather than . If we used only one variable, we would lose the information distinguishing "one cycle of length 6" from "six cycles of length 1," which correspond to very different color-usage patterns and give different generating functions. The multivariable cycle index is exactly the data needed to substitute for in the proof's Step 2 and 3.
How do you actually compute the cycle index of a group acting on a set, in practice?
List every group element (or, more efficiently, every conjugacy class of elements acting the same way, since conjugate permutations have the same cycle type), determine its cycle type as a permutation of the position set, write the corresponding monomial , sum these monomials over all group elements, and divide by . In practice one groups elements by conjugacy class or by geometric type (as done for the cube's rotation group: identity, face-quarter-turns, face-half-turns, vertex-third-turns, edge-half-turns), computes the cycle type once per class, and multiplies by the class size before summing.
Does Pólya's theorem require the color set to be finite?
The theorem as proved here assumes is finite so that is a finite sum and all manipulations (finite products, finite sums) are unconditionally valid. In practice the theorem is often stated with replaced directly by a formal generating function (e.g. for "infinitely many colors, one per positive integer weight"), and the same substitution formula continues to hold as an identity of formal power series, but this requires separately justifying convergence/well-definedness in the formal power series ring — a routine but real extension beyond the finite- proof given here.
What is the relationship between Pólya enumeration and the Twelvefold Way?
The The Twelvefold Way classifies counting problems for functions according to whether , , or neither/both are considered "up to symmetry" (identical elements or distinguishable), and whether functions must be injective/surjective. Pólya enumeration handles the specific slice of this classification where positions in are acted on by a specified symmetry group (not just treated as fully identical or fully distinct) while colors in remain distinguishable but weighted; it is a vast generalization of the "distinct domain, distinct range, no group" and "fully symmetric domain" corners of the Twelvefold Way, filling in the intermediate cases where the symmetry is neither trivial nor total.
Can Pólya's theorem count colorings using a fixed exact number of colors, e.g. "exactly 3 colors must all be used at least once"?
Yes, via inclusion-exclusion layered on top of Pólya's theorem. First use Pólya's theorem to count colorings (up to symmetry) using at most available colors for every , then apply inclusion–exclusion over subsets of the color palette to isolate colorings that use every one of a fixed set of colors at least once. This is analogous to how ordinary surjection counts are derived from ordinary function counts using Stirling Numbers of the First Kind-adjacent inclusion–exclusion arguments (specifically Stirling numbers of the second kind govern plain surjections; the same inclusion-exclusion idea composes cleanly with the symmetrized Pólya counts).
Why does the proof of Pólya's theorem redo Burnside's double-counting argument instead of just citing Burnside's Lemma directly?
Because the plain (unweighted) Burnside's Lemma only tells you the count of orbits, ; it says nothing about how orbits are weighted or what data (like color usage) distinguishes one orbit from another. The proof needs the finer weighted version, summing rather than over each orbit, which requires re-running the identical double-counting argument with weights inserted throughout. The unweighted Lemma is recovered only afterward, as the special case where every weight equals .