BLUEBIRD MATH CIRCLE �
17 May 2023
Mark Saul, Ph.D.
“Think deeply of simple things.”
-- Arnold Ross
MAGIC SQUARES
LAST TIME WE MET:
We constructed 3x3 magic squares with the entries {1,2,3,4,5,6,7,8,9}.
Here is one result:
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
All the rows add up to 15.
All the columns add up to 15.
Each of the diagonals adds up to 15.
The row sums, column sums, and diagonal sums are all equal.
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
This is a magic square.
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
All the rows add up to 15.
All the columns add up to 15.
Each of the diagonals adds up to 15.
The row sums, column sums, and diagonal sums are all equal.
This is a magic square.
TASK 1: This magic square contains the numbers 1 through 9.
Can you construct a magic square containing the numbers 2 through 10?
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
Here are four magic squares.
You can check that in fact they are magic.
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
How are they different?
How are they the same?
The Magic Constant Must be 15
Why? Well, if we add up the sums of the three rows, we must get:
1+2+3+4+5+6+7+8+9 = 45 (except the addends will be in a different order) .
And 45/3 = 15.
a | b | c |
d | e | f |
g | h | i |
If the magic constant (sum of each row) is S,
then:
a+b+c = S
d+e+f = S
g+h+I = S
So S+S+s = 3S = a+b+c+d+e+f+g+h+I,
which is 1+2+3+4+5+6+7+8+9, = 45
(with the addends in some order.
Thus 3S = 45, and S = 15.
The middle number must be 5
Why?
P | | |
| 6 | |
| | q |
Well, try to put some other number in the middle, say 6.
Then the numbers in the two opposite corners, p and q must add up to 15-6 = 9
The middle number must be 5
Why?
P | w | u |
r | 6 | s |
t | v | q |
Well, try to put some other number in the middle, say 6.
Then the numbers in the two opposite corners, p and q must add up to 15-6 = 9
But so must r + s and t+u and v+w. Each pair must add up to 9.
That means that all the nine numbers will add up to 9+9+9+9+6 = 42.
But they don’t! They add up to 45. So 6 in the middle must be wrong.
The middle number must be 5
In algebra;
The sums along the arrows below are all 15, and the arrows cover each number once EXCEPT the middle number, which is counted FOUR times (once for each arrow).
a | b | c |
d | e | f |
g | h | i |
a + e + f = 15
b + e + h = 15
d + e + f = 15
g + e + c = 15
So
a + b + c + d + 4e + f + g +h +i = 60
But a + b + c + d +e + f + g +h +i = 45
So 3e = 15 and e = 5
Challenge (for later): Can you prove that the numbers in the corners must all be even?
| | |
| 5 | |
| | |
Hints: What can you say about the parity of the sum of two even numbers?
Of two odd numbers?
Of an odd number and an even number?
If three numbers add up to 15, what can you say about the parity of these numbers?
The property of being odd or being even is called the parity of a number.
The numbers in the corners must all be even
Why?
(This is not so simple)
e | | |
6 | 5 | 4 |
| | e |
Suppose we put a 6 next to the five.
Then we must put a 4 opposite it.
(Remember, the row sum must be 15.)
What can go in the upper left?
If it’s an even number, then the lower right must also be even.
The numbers in the corners must all be even
Why?
(This is not so simple)
2 | | |
6 | 5 | 4 |
| | 8 |
Suppose we put a 6 next to the five.
Then we must put a 4 opposite it.
(Remember, the row sum must be 15.)
What can go in the upper left?
If it’s an even number, then the lower right must also be even.
For example, if the upper left is 2, then the lower right must be 8 (to make the diagonal 15).
The numbers in the corners must all be even
Why?
(This is not so simple)
2 | odd | odd |
6 | 5 | 4 |
odd | odd | 8 |
Suppose we put a 6 next to the five.
Then we must put a 4 opposite it.
(Remember, the row sum must be 15.)
What can go in the upper left?
If it’s an even number, then the lower right must also be even.
For example, if the upper left is 2, then the lower right must be 8 (to make the diagonal 15).
This is trouble!
The numbers in the corners must all be even
Why?
(This is not so simple)
2 | odd | odd |
6 | 5 | 4 |
odd | odd | 8 |
What can go in the upper left?
If it’s an even number, then the lower right must also be even.
For example, if the upper left is 2, then the lower right must be 8 (to make the diagonal 15).
This is trouble!
Look at the first row. It has two odd numbers and one even number. But the sum of two odds and one even is going to be even!
The number 15 is NOT even!
The numbers in the corners must all be even
Why?
(This is not so simple)
2 | odd | odd |
6 | 5 | 4 |
odd | odd | 8 |
What can go in the upper left?
If it’s an even number, then the lower right must also be even.
For example, if the upper left is 2, then the lower right must be 8 (to make the diagonal 15).
This is trouble!
Look at the first row. It has two odd numbers and one even number. But the sum of two odds and one even is going to be even!
The number 15 is NOT even!
The numbers in the corners must all be even
Why?
(This is not so simple)
1 | | even |
6 | 5 | 4 |
| | 9 |
It’s even worse if we put an odd number (say 1) above the 6.
Then the lower right must be odd (it’s 9).
Now look at the rightmost column. It needs two even numbers. So the top right must be even.
The numbers in the corners must all be even
Why?
(This is not so simple)
1 | even | even |
6 | 5 | 4 |
| | 9 |
It’s even worse if we put an odd number (say 1) above the 6.
Then the lower right must be odd (it’s 9).
Now look at the rightmost column. It needs two even numbers. So the top right must be even.
Now the top row needs another even number.
The numbers in the corners must all be even
Why?
(This is not so simple)
1 | even | even |
6 | 5 | 4 |
| even | 9 |
It’s even worse if we put an odd number (say 1) above the 6.
Then the lower right must be odd (it’s 9).
Now look at the rightmost column. It needs two even numbers. So the top right must be even.
Now the top row needs another even number. And the middle column also needs another even number.
The numbers in the corners must all be even
Why?
(This is not so simple)
1 | even | even |
6 | 5 | 4 |
| even | 9 |
It’s even worse if we put an odd number (say 1) above the 6.
Then the lower right must be odd (it’s 9).
Now look at the rightmost column. It needs two even numbers. So the top right must be even.
Now the top row needs another even number. And the middle column also needs another even number.
That makes FIVE even numbers, but we only have FOUR: 2,4,6,8.
The numbers in the corners must all be even
Why?
(This is not so simple)
1 | even | even |
6 | 5 | 4 |
| | 9 |
Placing just one even number on a ‘side’ square makes it impossible for the square to be magic.
So all the even numbers must be in the corners.
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
One of the ways to describe the relationships among these squares is to say that they have the same rows and columns:
For example, 6-1-8 always appears as a row or column. The 6-1-8 may appear backwards or upside down, but it never becomes 6-1-4
They squares also have the same diagonals, but in different positions.
(e) (f) (g) (h)
(a) (b) (c) (d)
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
(a) (b)
In fact, if you look at squares (a) and (b), you will see that you can obtain (b) from (a) by rotating (“twisting”) around the center by 90 degrees.
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
Which other squares can be obtained from (a) by rotating (twisting) about the center?
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
And what about the other squares? How can you obtain them from (a)?
Try this yourself!
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
Which other squares can be obtained from (a) by rotating (twisting) about the center?
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
And what about the other squares? How can you obtain them from (a)?
BACK FROM BREAKOUT
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
And what about the other squares? How can you obtain them from (a)?
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
Rotate (a) by 90 degrees to get (b).
Rotate (a) by 180 degrees to get (c).
Rotate (a) by 270 degrees to get (d).
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
But to get from (a) to ( e) we cannot just rotate.
We must reflect (‘flip’) along the diagonal.
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
How can we get from (a) to (f)?
From (a) to (g)?
From (a) to (h)?
BREAKOUT
i
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
How can we get from (a) to (f)?
From (a) to (g)?
From (a) to (h)?
BACK FROM BREAKOUT
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
How can we get from (a) to (f)?
From (a) to (g)?
From (a) to (h)?
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
A reflection (flip) in the middle column takes (a) onto (f).
A reflection (flip) in the ‘other’ diagonal takes (a) onto (g).
A reflection (flip) in the middle row takes (a) onto (h).
Eight Magic Squares
2 | 9 | 4 |
7 | 5 | 3 |
6 | 1 | 8 |
2 | 7 | 6 |
9 | 5 | 1 |
4 | 3 | 8 |
4 | 3 | 8 |
9 | 5 | 1 |
2 | 7 | 6 |
4 | 9 | 2 |
3 | 5 | 7 |
8 | 1 | 6 |
6 | 7 | 2 |
1 | 5 | 9 |
8 | 3 | 4 |
6 | 1 | 8 |
7 | 5 | 3 |
2 | 9 | 4 |
8 | 3 | 4 |
1 | 5 | 9 |
6 | 7 | 2 |
8 | 1 | 6 |
3 | 5 | 7 |
4 | 9 | 2 |
(a) (b) (c) (d)
(e) (f) (g) (h)
Notice that when we reflect, the line of reflection does not change.
But when we rotate, every line changes.
That is one way we can tell a rotation from a reflection.
Are there other ways?
Thank you for your kind attention.
ENJOY MATHEMATICS!
Mark Saul, Ph.D.