Math Puzzle: Sudoku Surprise

The rules of Sudoku dictate that every row, column and 3×3 bolded box in the completed grid must contain the digits 1 through 9 exactly once. A surprising fact emerges from these simple rules.

In every completed Sudoku, the cells highlighted in orange will always contain the same digits as the cells highlighted in blue.

Sudoku grid filled out with the following digits. First row: 2, 3, 6, 4, 1, 5, 8, 9, 7; second row: 7, 4, 9, 3, 8, 2, 6, 5, 1; third row: 8, 5, 1, 9, 6, 7, 4, 2, 3; fourth row: 1, 6, 4, 8, 2, 9, 7, 3, 5; fifth row: 3, 8, 7, 1, 5, 4, 2, 6, 9; sixth row: 5, 9, 2, 7, 3, 6, 1, 4, 8; seventh row: 9, 7, 5, 2, 4, 1, 3, 8, 6; eighth row: 6, 2, 3, 5, 7, 8, 9, 1, 4; ninth row: 4, 1, 8, 6, 9, 3, 5, 7, 2. The four cells forming a two-by-two square at each corner of the grid are shaded blue, and the 16 cells surrounding the nine cells in the center of the grid are shaded orange.

In this example from our recent “Expert Sudoku,” there are three 7’s in the orange ring and three 7’s in the blue 2×2 squares in the corners. Similarly, there are no 8’s in the orange ring and no 8’s in the blue squares, and so on. Explain why this happens in every Sudoku puzzle.

How do we know that in a completed Sudoku grid, the orange cells and blue cells below will contain the same digits?

Sudoku grid with the full middle column shaded orange and the full middle row shaded blue, except for the cell at the center, which is not shaded.

We know that the full middle column and the full middle row of the grid must contain the same digits by the rules of Sudoku: every row and column has the digits 1 through 9. Furthermore, the middle cell of the puzzle is common to both of these sets, so if it is removed from both, they remain equal.

To solve this week’s puzzle, find two sets of cells that you know contain the same digits and remove the cells they have in common to create the desired pattern.

Every column in a completed Sudoku contains the digits 1 through 9. So the four columns highlighted in blue below altogether contain exactly four 1’s, four 2’s, four 3’s, and so on.

Sudoku grid with the two full columns on the far left and far right sides shaded blue.

Similarly, the cells highlighted in orange below comprise two full rows and two full 3 x 3 boxes, so they also contain exactly four 1’s, four 2’s, four 3’s, and so on.

Sudoku grid with the middle five rows shaded orange, except for the nine center cells, which are not shaded.

In other words, the orange and blue sets below contain the same composition of digits.

Sudoku grid with the blue and orange shading from the previous two grids overlaid so that the first two and last two cells in each of the middle five rows have both blue and orange shading.

Removing cells that are common to both orange and blue gives us our desired pattern and maintains the equality of the sets.

Sudoku grid with the same shading pattern as the first grid: the four cells forming a two-by-two square at each corner of the grid are shaded blue, and the 16 cells surrounding the nine cells in the center of the grid are shaded orange.

The Sudoku community calls this pattern the Phistomefel Ring. It is named after the alias of a puzzle setter who popularized the observation and has designed variant Sudoku puzzles around it.

Notes from Readers

Our recent puzzle “Prime Time” asked you to find one million consecutive nonprime numbers. The problem did not ask for the smallest instance of one million consecutive nonprimes, but mathematical minds enjoy optimizing, and several readers wrote in ideas for finding smaller sequences that fit the bill.

Our original solution was:

1,000,001! + 2, 1,000,001! + 3, 1,000,001! + 4, ..., 1,000,001! + 1,000,001

Reader Mike Thwaites offered an elegant tweak by replacing the plus signs with minus signs:

1,000,001! – 2, 1,000,001! – 3, 1,000,001! – 4, ..., 1,000,001! – 1,000,001

Each of these terms is nonprime, just like their counterparts formed by addition, and we have indeed shifted things earlier in the number line, albeit slightly.

Another reader, Mike O’Connor, found a significantly smaller sequence. Instead of multiplying all of the numbers from 2 to 1,000,001, we only need to multiply the primes from 2 to 1,000,001. Call this product P. Then P + 2, P + 3, ..., P + 1,000,001 form one million consecutive nonprimes.

This one takes a bit of reflection to understand. If k is a number between 2 and 1,000,001, then why is P + k necessarily nonprime? There are two scenarios: If k is prime, P is divisible by k by definition, so P + k is divisible by k and therefore nonprime. If k is not prime, then there must be some smaller prime that divides it. That smaller prime will also divide P, so again, P + k can’t be prime.

Thanks to the Mikes for sharing their ideas.

We’d love to hear from you! E-mail us at games@sciam.com to share your experience.