Challenge 5: Magic Squares
Can you find all the ways to construct a magic square with these numbers?
The 3x3 grid below contains only the numbers 1, 2 and 3. Notice that the sum of the numbers in every column, row and diagonal is a multiple of 3:
1 |
2 |
3 |
2 |
3 |
1 |
3 |
1 |
2 |
Here is another 3x3 grid which follows the same rules:
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
Part A)
How many different 3x3 grids are there which contain only the numbers 1, 2 and 3, in which the sum of the numbers in every column, row and diagonal is a multiple of 3?
If you have found two grids which have numbers in different places but where one grid can be turned into the other grid by rotating or reflecting it, you should still consider these two grids to be different.
Part B)
How many different 3x3 grids are there which contain only the numbers 1, 2, 3 and 4, in which the sum of the numbers in every column, row and diagonal is a multiple of 4?