Sudoku’s Hidden Symmetry

Sudoku variations

The Hidden Symmetry in Sudoku Grids: 3,359,232 Ways to Transform a Sudoku Grid

You’ve probably solved thousands of Sudoku puzzles without realizing something quietly strange: many of them are secretly the same puzzle. Not similar — literally identical, just wearing a disguise. The disguise has a name: symmetry transformations.

The Moves That Change Everything — And Nothing

A valid Sudoku grid remains valid under a surprisingly rich set of rearrangements. None of them break any rule:

  • Swap rows within a band — rows 1, 2, and 3 can be shuffled in any order (6 arrangements), and the same applies to rows 4–6 and 7–9
  • Swap the bands themselves — the three horizontal strips of three rows can be reordered (another 6 ways)
  • Same logic for columns and stacks — identical operations apply vertically
  • Rotate or reflect the entire grid — the 8 classical symmetries of a square all preserve validity
  • Relabel the digits — replace every 1 with a 7 and every 7 with a 1 throughout: still a perfectly valid, perfectly solved Sudoku

Without relabelling digits, there are 3,359,232 ways to rearrange cell positions while preserving all Sudoku units. Russell and Jarvis counted these transformations.

The Algebra Behind the Number

You can reorder the three rows within each band and then reorder the bands themselves. That gives 64 row arrangements, with another 64 for columns. Finally, you can swap rows and columns by transposing the grid, giving 2 × 68 = 3,359,232 transformations.

If you also count digit relabelling (permuting all 9 symbols), the full symmetry group expands dramatically to 1,218,998,108,160 elements. That is the number of transformations. Some transformations of a given grid produce the same result, so the number of distinct equivalent grids can be smaller.

The Counterintuitive Part: Symmetry Almost Never Survives

Here’s what’s genuinely surprising. With such a rich set of transformations, you might expect many grids to map onto themselves — to be self-symmetric, like a snowflake or a kaleidoscope image. These are called automorphic grids, and mathematically they’re the most structured, most “beautiful” solutions possible.

Some completed grids are equivalent to themselves after a nontrivial move such as a quarter turn combined with a digit relabelling. That is why the exact count of essentially different grids requires more than dividing by the number of transformations.

For the exact counts and how they were obtained, see how many Sudoku grids there are.

Three Moves to Generate Everything

Perhaps the most elegant fact about this entire system: the 3,359,232-element group can be generated by just three primitive moves — rotate 90°, swap rows 1 and 2, swap bands 1 and 2. Every other transformation in the group is just a sequence of these three, combined in different ways.

Enormous complexity. Three instructions.

That compression — from millions of transformations down to three generators — is exactly what mathematicians mean when they call a structure beautiful. And it’s sitting quietly underneath every Sudoku puzzle you’ve ever solved.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

seven + eighteen =