Home > Riddles > The magic square of Lo Shu (China)

The magic square of Lo Shu (China)

Numerical territoryLevel 2 · Core · ●●○○○

Place the numbers 1 through 9 on a $3 \times 3$ grid so that the sum of each row, each column, and each diagonal is exactly 15. This is the legendary magic square of Lo Shu, discovered according to legend in the shell of a divine turtle. What is the solution? How many unique solutions are there (not counting rotations and reflections)?
Chinese mathematics, ~2200 BC

Hints

Show hints
  1. With those restrictions, only rotation/reflection equivalent configurations remain.
  2. There is 1 essential solution. The rest are its 8 symmetries of the square (4 rotations and their reflections).
  3. A fundamental solution (unique except for symmetries) is: Rows: 2+7+6=15, 9+5+1=15, 4+3+8=15.

Solution

Show full solution

Answer: A fundamental solution (unique except for symmetries) is:
Lo Shu magic square (sum 15)
1) Direct verification

  • Rows: $2+7+6=15$, $9+5+1=15$, $4+3+8=15$.
  • Columns: $2+9+4=15$, $7+5+3=15$, $6+1+8=15$.
  • Diagonals: $2+5+8=15$, $6+5+4=15$.

2) Why the structure is forced
For numbers 1 to 9, the total sum is 45, so each of the 3 rows must add up to 15.
The center participates in 4 lines (row, column and two diagonals), and is forced to be 5 (average value).
Furthermore, pairs opposite the center must add up to 10: $(1,9)$, $(2,8)$, $(3,7)$, $(4,6)$.
With those restrictions, only rotation/reflection equivalent configurations remain.
3) Uniqueness
There is 1 essential solution. The rest are its 8 symmetries of the square (4 rotations and their reflections).

Related riddles

Keep practicing

If you enjoyed this one, try more pure-logic riddles, explore this theme, browse the full archive, or read the riddle-solving guide.

← Previous: The wise men and the pearls (ancient Persia) · Next: Ten bags and one heavy →