polya — count the necklaces

how many ways to bead a bracelet of n beads in k colors, if two bracelets that are the same up to turning (or flipping) count once? burnside's lemma does the counting; polya's theorem does the generating function. this page just does the first, slowly, and shows its work.

distinct: —
symmetry elementfixed colorings k#cycles#cycles

burnside: the number of distinct objects is the average number of colorings fixed by each symmetry. a rotation that turns the necklace by g beads splits the beads into gcd(n,g) cycles, so it fixes kgcd(n,g) colorings. a flip fixes k(n+1)/2 or kn/2 depending on parity. average them and you get an integer — always. that integer is how many genuinely different bracelets there are.