How to make bigger Magic Squares

5x5 Magic Squares   

7x7 Magic Squares   

The 8x8 "Knight's move" Magic Square   

An Upside Down Magic Square

The MAGIC OF MATHS book tells you all about magic squares, and How to Make 4x4 Magic Squares which will produce any number. Here are how some bigger squares work.



5x5 Magic Squares



17241815
23571416
46132022
101219213
11182529

This is the basic 5x5 magic square.

It uses all the numbers 1-25 and it adds up to 65 in 13 different ways:

  • All 5 horizontal lines add up to 65
  • All 5 vertical lines add up to 65
  • The two diagonals both add up to 65
  • Finally you can add up the four corners and the number in the middle to get 65.



How to make a 5x5 magic square add up to other numbers.

17241515
20571416
46102022
101219210
11152529

This square adds up to 62 in 13 ways.

You'll see it's very similar to the first square but we've subtracted 3 from each number in a red box. That's why each line adds up to 3 less than 65.


If you wanted each line to add up to 80, that's 15 more than 65. So starting with the original square, you'd just add 15 to each number in a red square. However, we can do better than that!

How to lay out a 5x5 Magic Square

  1  
 5   
46   
    3
   2 

Have another look at the way the numbers are set out in the original square. It uses all the numbers 1-25, and if you follow the numbers round in order you'll see they appear in this pattern:

1,2,3,4 and 5 are in a diagonal line, which goes off the top and comes back at the bottom, then goes off the right and comes back on the left. Once the first five numbers are in place, there's no empty place to put number 6.

   
  57  
6   
10    3
11  9
The rule is to put the 6 UNDER the 5, and then continue putting numbers in another diagonal line:

Again you'll see that the numbers 6-10 are in a diagonal which goes round until there's no space for the 11. So the 11 goes under the last number which was 10. If you keep going, you'll fill the whole grid with the numbers 1-25 and make the basic 5x5 magic square.

** You could start with the number 1 anywhere, but if you put it in the middle of the top line, this ensures that the diagonals work and that the 4 corners and the middle number add up to 65.**


So suppose you want the square to add to 80?


202741118
268101719
79162325
131522246
142128512

Instead of starting with the number 1, start with a 4, then continue filling in 5,6,7,8 etc. until you finish on 28.

You get a square like this one:


Go THIS way Go THAT way        
You can always work out what the lines of a 5x5 square like this will add up to:

  • Take the lowest number and multiply by 5.
  • Add 60

In this case it's 4 x 5 + 60 = 20 + 60 = 80



7x7 Magic Squares

A 7x7 square works the same way as a 5x5 square - just fill in the numbers in diagonals as before. Sadly the four corners and middle number don't give the right result, but you'll find all the lines and diagonals add up to 175!


3039481101928
384779182729
466817263537
5141625343645
1315243342444
2123324143312
2231404921120


The "KNIGHT'S MOVE" 8x8 Magic Square

     
     
     
     
     
If you know the rules of chess, you'll know that it's played on a board measuring 8 squares by 8 squares. One chess piece is the "knight" and it moves around the board in a strange way. It leaps around in a little "L" shape - in other words it goes two steps forward and one step to the side. In this little diagram, if the "knight" was on the yellow square in the middle, then the red squares show where it could jump to.

The classic "Knight's Puzzle" is to try and move a knight round a chess board visiting every square just once. It's a tough puzzle at the best of times, but here is one very special solution! The knight starts on the square numbered 1 then hops to 2, then 3 etc. finally finishing on 64. (It could then hop back to 1 and start again!)


5011246314372635
2362511225341538
1049642140133627
612295233283916
48760120415429
59445853321742
64725744193055
35854631564318

Here's the good bit - every row and every column add up to 260!

The "UPSIDE DOWN" Magic Square

88l8 llll 8l88 l88l
8l8l l888 88ll lll8
l8ll 8ll8 ll8l 8888
ll88 888l l8l8 8lll

Finally look at this peculiar 4x4 magic square.

Every row and column and both diagonals add up to 19,998 - but if you turn your computer screen upside down it still works!

There's a reasonably simple explanation for this. Can you see it?


Murderous Maths Home Page