On this page
Two necklaces count as the same if you can turn one into the other. Listing them gets slow fast, so mathematicians use a polynomial that records the symmetries once and answers every colouring question about them. That polynomial is the cycle index, and the result that uses it is the Pólya enumeration theorem.
What does the Pólya enumeration theorem say?
Burnside's lemma counts objects that differ up to symmetry by averaging, over all the symmetries, the number of colourings each one leaves unchanged (Burnside's lemma, Wikipedia). We worked through it in our step-by-step guide to Burnside's lemma. Pólya's theorem does the same average with a polynomial that keeps more information.
The cycle index of a permutation group is the average, over its elements, of a monomial whose exponent of t_k is the number of k-cycles in that element (Cycle index, Wikipedia).
The theorem says: replace each t_k by the sum of k-th powers of the colour variables, here r^k + g^k + b^k, and expand; each coefficient counts the distinct colourings with that mix of colours (Pólya enumeration theorem, Wikipedia). Set every t_k equal to the number of colours m and you get the plain total, which is Burnside's lemma again.
J. Howard Redfield published the result first, in 1927, in The Theory of Group-Reduced Distributions in the American Journal of Mathematics. George Pólya found it independently and published it in 1937 in Acta Mathematica, volume 68, using it to count chemical compounds. The same thinking sits behind counting the isomers of trisubstituted benzenes.
How do you find the cycle index of the rotation group of a square?
Number the beads 1, 2, 3, 4 around the square and write each rotation as a permutation:
0°: every bead stays put, four 1-cycles, so t₁⁴.
90°: 1→2→3→4→1, one 4-cycle, so t₄.
180°: 1↔3 and 2↔4, two 2-cycles, so t₂².
270°: one 4-cycle the other way, so t₄.
Average the four monomials: Z = (t₁⁴ + t₂² + 2t₄)/4.
Why cycles? A colouring left unchanged by a symmetry must give every bead in a cycle the same colour. A symmetry with c cycles therefore fixes m^c colourings, and the cycle index stores c for every symmetry at once.
How many necklaces of 4 beads in 3 colours are there?
Put every t_k = 3: (81 + 9 + 2×3)/4 = 96/4 = 24. The OEIS entry for necklaces with 3 colours (A001867) lists 24 for 4 beads.
Allow flips and the group grows to 8 symmetries. Two reflections pass through opposite beads, fixing two and swapping two (t₁²t₂). Two pass through midpoints of opposite edges, making two swaps (t₂²). So Z = (t₁⁴ + 2t₁²t₂ + 3t₂² + 2t₄)/8, and with 3 colours (81 + 54 + 27 + 6)/8 = 168/8 = 21. The OEIS entry for 3-colour necklaces allowing turning over (A027671) lists 21.
What does the weighted count tell you that Burnside's lemma doesn't?
Substitute t_k = r^k + g^k + b^k into the rotation cycle index and group the coefficients by colour mix:
one colour only: 1 necklace for each of 3 colours, 3 in all
three of one colour and one of another: 1 each across 6 mixes, 6 in all
two and two: 2 each (RRGG and RGRG) across 3 mixes, 6 in all
two, one, one: 3 each (RRGB, RRBG, RGRB) across 3 mixes, 9 in all
That adds to 24. Check the coefficient of r²gb. In (r + g + b)⁴ it is 4!/(2!·1!·1!) = 12. The t₂² term gives only even powers and the t₄ term only fourth powers, so neither contributes, and 12/4 = 3.
Now allow flips. RRGB and RRBG are mirror images, so each two-one-one mix drops from 3 to 2, and every other line stays the same: 3 + 6 + 6 + 6 = 21. Burnside's lemma gives you 24 and 21. Pólya's theorem shows you where the 3 lost necklaces went: one mirror pair merged in each two-one-one mix.
How do you practise Pólya counting?
Use the same five steps:
Number the positions and list every symmetry as a permutation.
Write each in cycle notation and record its monomial.
Average them to get Z, then run the t_k = 1 check.
Substitute m for the total, or colour sums for the breakdown.
Confirm one small case by listing it by hand.
For a next problem, colour the faces of a cube. Its rotation group gives (m⁶ + 3m⁴ + 12m³ + 8m²)/24 colourings with m colours (Pólya enumeration theorem, Wikipedia); with 2 colours that is 240/24 = 10. If cycle notation still feels shaky, our guide to cycle notation in the symmetric group works through it on S₄.
If a group action or cycle type is the gap, the Fermi Concept Library covers every concept in mathematics, so you can rebuild the idea first. If your count comes out as a fraction, the Fermi Problem Library has a step-by-step solver that explains the reasoning, so you can find the missed symmetry.



