Skip to content

Burnside / Pólya Hot Sheet

Use this page when the real task is counting equivalence classes under symmetry, not counting raw representations.

Do Not Use When

  • the objects are already distinct by statement and there is no quotient by symmetry
  • the only missing tool is powmod or modular inverse
  • the main problem is DP or graph modeling, not orbit counting

Choose By Signal

Core Invariants

  • Burnside counts orbits by averaging fixed representations over the group
  • for colorings, one permutation with c position-cycles fixes exactly k^c assignments
  • on a necklace, rotation by r has gcd(n, r) cycles
  • the repo starter contract is narrow: C_n action, one fixed prime modulus, no reflections

Main Traps

  • counting raw strings and trying to divide by n heuristically
  • forgetting that the group is rotations only, not dihedral symmetry
  • dividing modulo MOD without checking that the inverse of |G| exists
  • using the necklace formula on grid rotations or reflection problems

Exact Starter In This Repo

Reopen Paths