Latin Square Magic

A Latin square is an n × n n \times n grid where each column and row contains exactly the integers 1 , 2 , , n 1, 2, \ldots , n . There are 576 Latin squares that are 4 × 4 4 \times 4 , and an example is given above.

In the example, some numbers are repeated on a diagonal, like the highlighted 3's.

How many 4 × 4 4 \times 4 Latin squares have no numbers repeated on any diagonal?

0 4 16 64

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jason Dyer Staff
Oct 21, 2016

The upper left must contain some number a . a .

Suppose on the second row a a is in the third column. Then in the third row a a cannot be placed because it will be diagonal with the a a in the second row.

a . . .
. . a .
. * . *
. . . .

Suppose on the second row a a is in the fourth column. Then in the third row a a can only be in the second column.

a . . .
. . . a
. a . .
. . . .

This forces the last a a to be in the lower right corner, and the same diagonal as the a a in the upper left corner.

Therefore there is no placement that can satisfy the conditions.

Can you clarify how this proof is equivalent (or related) to the n-queens on a 4 by 4 board?

I see that the existence of a Latin square with non-repeated diagonals implies the existence of the n-queens, but I don't think this is a sufficient condition.

Calvin Lin Staff - 4 years, 7 months ago

Hm, it's indirect enough that it probably isn't worth having the comment there.

Jason Dyer Staff - 4 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...