3x3 Magic Squares
In a normal 3x3 magic square, the grid will consist of 9 boxes
which are filled with the consecutive numbers 1 thru 9.
First, find the value of the entire square.
Since each number is used only once, this value is
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45.
Because the sum of each row is equal, the sum of the rows are
R1 + R2 + R3 = 45.
Therefore the sum of each row is 45/3 = 15.
This also means that the sum of the columns and the diagonals is also 15.
R1 R2 R3
15 15 15
Assign a value to the center box on the grid.
This box is included in one row, one column, and both diagonals.
This number is also adjacent to every other number in the square
Find the sum of all of the rows, columns, and diagonals which involve x
R2 + C2 + D1 + D2 = 15 + 15 + 15 + 15 = 60
Notice that all of the numbers, 1 thru 9, have been used
and that the number which is represented by x has been used 4 times.
Recall that the sum of all of the numbers equals 45.
Since the x-value has been used 4 times in the sum, it has been added 3 extra times.
Therefore, the sum of all of the rows, columns, and diagonals involving x is
[the sum of all the numbers] + [the three additional x-values] = 60
45 + 3x = 60
Now solve for x
3x = 60 - 45
3x = 15
x = 5
Therefore the value of the center box must be 5.
In order to find the other values in the boxes,
simply ensure that all rows, columns and diagonals sum to 15.
Variations on the 3x3 magic square can be found by rotating the entries around the center box.