Reasoning · Grade 5-2 Varieties of Magic Squares

Problem

Complete a 4 by 4 magic square

A 4 by 4 table already holds seven numbers. The numbers 1 to 16 are each used once. Every row, every column and both diagonals must have the same total. Fill in all the empty cells.
Your answer
How to solve
Strategy Identify Subproblems — Nine blanks at once is far too much to hold in your head, but a single line with only one blank left is a one-subtraction subproblem: the missing number is the common total minus the three you can see. So I first work out the common total, then hunt each time for the line that has the fewest blanks, fill it, and look again — every number I write turns some other line into a one-blank line. Only one place needs more care, a line with two blanks, and there I list the number pairs that fit and knock out the ones that break another line.
1STEP 1

Work out the common total before placing anything

The total 136 makes each line 34.

1+2+3+…+16 = 8 × 17 = 136, 136 ÷ 4 = 34
2STEP 2

Fill the line that already has three numbers

The line with three numbers gives 2.

15+12+5 = 32, 34-32 = 2
3STEP 3

Column 1 now pins down a pair of numbers

Column 1 narrows to 13 and 16.

34-(3+2) = 29; 13+16 = 29, 14+15 = 29
4STEP 4

Decide which of 13 and 16 goes on top

The diagonal puts 13 on top.

16+8+12 = 36 > 34
5STEP 5

Row 3 has one hole left

Row 3's hole is 9.

16+5+4 = 25, 34-25 = 9
6STEP 6

Now the other diagonal falls

The other diagonal gives 14.

3+8+9 = 20, 34-20 = 14
7STEP 7

Finish row 2, and column 4 checks itself

Finishing row 2 makes column 4 check itself.

13+8+12 = 33, 34-33 = 1; 15+1+4+14 = 34
8STEP 8

Column 3, then the last two cells

Fill column 3 and the last two cells.

34-(12+9+7) = 6; 34-(2+7+14) = 11; 34-(3+6+15) = 10
9STEP 9

Check all ten lines and all sixteen numbers

All ten lines total 34.

Answer
3 10 6 15 / 13 8 12 1 / 16 5 9 4 / 2 11 7 14
136 ÷ 4 = 34
The common total has to be 34 and nothing else: the sixteen numbers add to 136 and the four rows share that equally, so 136 / 4 = 34. That is also the right size — four numbers averaging 8.5, the middle of 1 to 16, gives 4 x 8.5 = 34. All ten lines were re-added and every one comes to 34, and the sixteen entries sort to exactly 1 through 16 with no number used twice. Every blank was forced by a subtraction, and the one moment of choice (13 or 16 in column 1) was settled by 16 + 8 + 12 = 36 already overshooting 34, so this filling is the only one possible.
Takeaway

Find the one total every line must reach, then always fill the line that has just one empty cell — the square finishes itself, no guessing needed.

  • Work out the common total before placing anything
  • Fill the line that already has three numbers
  • Column 1 now pins down a pair of numbers
  • Decide which of 13 and 16 goes on top
  • Row 3 has one hole left
  • Now the other diagonal falls
  • Finish row 2, and column 4 checks itself
  • Column 3, then the last two cells
  • Check all ten lines and all sixteen numbers