Magic squares and number puzzles
A magic square is a square grid of numbers in which every row, every column, and both diagonals add to the same total. For more than two thousand years, magic squares have been admired across India, China, and the Arab world for their balance and beauty.
Concept
The smallest interesting magic square is the magic square using the numbers to exactly once each. The unique arrangement (up to rotations and reflections) is:
Check: every row, column, and diagonal adds to .
- Rows: , , .
- Columns: , , .
- Diagonals: , .
The shared total () is called the magic constant. For a square using –, the magic constant must be , because the sum , and we are splitting it into equal rows.
For an magic square using the numbers to , the magic constant is
So for , . For , .
Magic squares also work with other sets of numbers. You can build a magic square using consecutive numbers like , or with any nine numbers in arithmetic progression. The arrangement is the same , only the entries shift.
There are simple rules of construction for odd-sized magic squares (called the Siamese method), but they are surprisingly hard to invent on your own. Try the case by hand and you will see why people have stared at these for centuries.
Other number-grid puzzles:
- Kakuro , fill in digits so that segments sum to given totals.
- Sudoku , fill in a grid with – in every row, column, and block.
- Cross sums , fill a cross-shape so all arms add to the same total.
The common idea: a grid where number rules connect cells.
Worked examples
Example 1. Verify that the magic constant for a square using – is .
- Sum .
- Split into equal rows: . ✓
Example 2. What is the magic constant for a magic square using –?
- .
Example 3. Complete this partial magic square (magic constant ):
- Middle row sums to : . So middle right is .
- Middle column: . ✓
- Top row: . The corners must sum to . From –, the available corners are .
- Bottom row: , corners sum to , so they must be and .
- Left column: top + + bottom = top + bottom = . From the corner pool with top row pair summing to and bottom pair to : top-left + top-right = and bottom-left + bottom-right = .
- Try top-left = , top-right = , bottom-left = , bottom-right = : check diagonals. ✓; ✓.
- Final square:
Example 4. Add the same number to every entry of the magic square in Example 3. Is it still a magic square? What is the new magic constant?
- Every row, column, diagonal gains . New constant . Still magic.
Try it yourself
- Find the magic constant of a magic square using –.
- Make a magic square using (instead of –). What is the magic constant?
- Multiply every entry in a magic square by . Is it still magic?
- In a magic square, the centre is always the average of the numbers used. Verify this for –.
- Sudoku challenge: in a row of a Sudoku, what must the sum of the digits be?
- Tricky: design a magic square using only odd numbers . What is the constant?
- Look up Dürer's famous magic square in his engraving Melencolia I. What is its magic constant?
Activity
Build it. On paper, draw a grid. Use cut paper squares numbered through . By trial, find an arrangement where every row, column, and diagonal sums to . You might fail many times before succeeding , that is part of the fun. Once you crack it, try the Siamese method: place in the top middle, then move up-right (wrapping around) to place , with the rule that if you land on a filled cell, drop down one. See if you can reach the same square.