5
$\begingroup$

I have created a sudoku puzzle with the following restrictions:

  • Each row and column sum to $45$.
  • Each row and column in the nine $3$ by $3$ sub-grids sum to $15$.

Is such a sudoku unique?

$\endgroup$
3
  • 5
    $\begingroup$ "...where each row and column adds to a total of 45..." is redundant, since it is in the nature of a sudoku puzzle that its rows and columns sum to $45$. This is because each row contains the numbers $1$ through $9$, and $1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45$. $\endgroup$
    – user46002
    Feb 11, 2019 at 5:04
  • $\begingroup$ "where each (3*3) 9 individual squares of rows and columns total a sum of 15" >>> do you mean 45? $\endgroup$
    – Kryesec
    Feb 11, 2019 at 5:33
  • 1
    $\begingroup$ @Kryesec I've assumed that that means that each of the 3 by 3 sub-grids is a magic square with "magic constant" 15. In other words, each row/column in each 3 by 3 sub-grid sums to 15. $\endgroup$
    – user46002
    Feb 11, 2019 at 5:47

4 Answers 4

8
$\begingroup$

No.

Of course, there's rotation and reflection, but even beyond that you can swap any two rows within its group of three rows (eg swap row 1 and 2 or swap 4 and 6), and you can swap a group of three with one of the other groups of three (eg swap 1,2,3 with 4,5,6), and the same applies to the columns.

$\endgroup$
1
  • $\begingroup$ I wonder if there's any kinda of transformation that would work here that doesn't work on sudoku in general. $\endgroup$
    – Rawling
    Feb 11, 2019 at 12:00
4
$\begingroup$

I was beaten to a very similar answer, but you can create such a square based on the magic square below:

abc
def
ghi

Turn it into this:

abcdefghi
defghiabc
ghiabcdef
bcaefdhig
efdhigbca
higbcaefd
cabfdeigh
fdeighcab
ighcabfde

Since there are multiple possible magic squares, it's not unique. When you change the number at the very center (i), which you can, you get a different sudoku (not even a rotation or reflection).

$\endgroup$
2
$\begingroup$

One such arrangement of the 3x3 grid could be:

1 5 9
8 3 4
6 7 2

This would then be repeated along to the right, but rotating the order of the rows to create:

1 5 9 8 3 4 6 7 2
8 3 4 6 7 2 1 5 9
6 7 2 1 5 9 8 3 4

The same could be done to repeat downwards but rotating the columns this time:

1 5 9 8 3 4 6 7 2
8 3 4 6 7 2 1 5 9
6 7 2 1 5 9 8 3 4
5 9 1 3 4 8 7 2 6
3 4 8 7 2 6 5 9 1
7 2 6 5 9 1 3 4 8
9 1 5 4 8 3 2 6 7
4 8 3 2 6 7 9 1 5
2 6 7 9 1 5 4 8 3

However:

This creates one such possibility of your given solution, as each of the 3x3 sections could be placed in the top left and the rotations occur from there.

$\endgroup$
2
$\begingroup$

The answer is no. A Sudoku satisfying the puzzle requirement (i.e. each 3x3 sub-grid is a semi-magic square) is not unique even if we do not make a distinction between Sudokus differing just by rotations or reflections. And the simplest reason, as pointed out by @DR Xorile, is that there are natural Sudoku transformations (namely certain rows and/or columns swaps) which are not rotations and reflections but which preserve the integrity of the Sudoku and the semi-magic property of the sub-grids. This brings up a question alluded to by @Rawling: what if we extend a rotations and reflections group of transformations with row and column permutations suggested by @DR Xorile (let's call this group RRRCP for brevity) and not make distinctions between Sudokus if they can be transformed into each other via any RRRCP transformations. Will it make a Sudoku built out of 3x3 sub-grid of semi-magic squares "unique"? At first I thought it might. On a smaller scale, a 3x3 semi-magic square is "unique" in a sense that all 72 semi-magic squares can be generated by applying transformations from a similar extended group (rotations, reflections, columns/rows permutations) to just one semi-magic square. But it turns out that for a full Sudoku the answer is still no - a Sudoku built out of 3x3 sub-grid of semi-magic squares is not "unique" even modulo RRRCP transformations. Here is why.

For the sake of precision here is the description of an RRRCP group. Let's call each set of three columns (1, 2, 3), (4, 5, 6), and (7, 8, 9) - a "macro" column and each set of three rows (1, 2, 3), (4, 5, 6), and (7, 8, 9) - a "macro" row. "Macro" columns and "macro" rows constitute a 3x3 "macro" grid. A RRRCP group consists of compositions of the following Sudoku transformations:

  • rotations and reflections;

  • permutations of the columns within a "macro" column (ex. columns 4, 5, 6)

  • permutations of the rows within a "macro" row (ex. rows 7, 8, 9)

  • permutations of whole "macro" columns within a 3x3 "macro" grid (ex swap columns 1 2 3 with columns 7, 8, 9)

  • permutations of whole "macro" rows within a 3x3 "macro" grid (ex swap rows 1 2 3 with rows 4, 5, 6).


The following two Sudokus S1 and S2 are built out of semi-magic squares but cannot be transformed into each other by RRRCP transformations.

2 7 6 1 9 5 3 8 4
9 5 1 8 4 3 7 6 2
4 3 8 6 2 7 5 1 9

3 8 4 2 7 6 1 9 5
7 6 2 9 5 1 8 4 3
5 1 9 4 3 8 6 2 7

1 9 5 3 8 4 2 7 6
8 4 3 7 6 2 9 5 1
6 2 7 5 1 9 4 3 8

-------------------------------

2 7 6 5 1 9 8 4 3
9 5 1 3 8 4 6 2 7
4 3 8 7 6 2 1 9 5

8 4 3 2 7 6 5 1 9
6 2 7 9 5 1 3 8 4
1 9 5 4 3 8 7 6 2

5 1 9 8 4 3 2 7 6
3 8 4 6 2 7 9 5 1
7 6 2 1 9 5 4 3 8

S1 and S2 cannot be transformed into each other by rotations or reflections because they have an identical central 3x3 sub-grid.
S1 and S2 cannot be transformed into each other by permutations within a "macro" row/column because they have an identical "macro" diagonal.
S1 and S2 cannot be transformed into each other by permutations of "macro" rows/columns because they are built out of different semi-magic squares.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.