A 3x3 magic square, with magic number , is a matrix such that the entries on each row, each column and each diagonal sum to . Show that if the square has positive integer entries, then is divisible by , and each entry of the square is at most , where . An example of a magic square with is
Problem 1629
Official solution
1. Define the magic square properties:
A 3x3 magic square with magic number is a matrix where the sum of the numbers in each row, each column, and each diagonal is equal to .
2. Sum of all entries:
Let the entries of the 3x3 magic square be where . The sum of all entries in the magic square is:
Since each row sums to and there are 3 rows, the total sum is:
3. Sum of the four corner cells, edge cells, and middle cell:
Let the sum of the four corner cells be , the sum of the four edge cells be , and the middle cell be . Then:
4. Sum of the diagonals:
Each diagonal sums to . The two diagonals include the middle cell twice, so:
5. Sum of the middle row and middle column:
The middle row and middle column each include the middle cell once, so:
6. Combine the equations:
Adding the equations for the diagonals and the middle row/column, and then subtracting the total sum equation:
Simplifying, we get:
Therefore, .
7. Divisibility by 3:
Since , is divisible by 3.
8. Inequality for each entry:
We need to show that each entry is at most . Since , we have .
- For the corner cells: Consider a diagonal. The sum of the diagonal is , and it includes two corner cells and the middle cell . Therefore, each corner cell is at most . Since the entries are positive integers, the maximum value for each corner cell is .
- For the edge cells: Consider the middle row or column. The sum of the middle row or column is , and it includes two edge cells and the middle cell . Therefore, each edge cell is at most . Since the entries are positive integers, the maximum value for each edge cell is .
Thus, each entry in the magic square is at most .