Skip to content
Book of Riddles

Journey through time

East Asia · Han to Song period

Lo Shu

Lo Shu

Nine halls, a turtle that arrived late, and Yang Hui’s square of four

Scene Around the first century AD a Chinese text gives the number sequence for the nine rooms of a ritual hall; the name “Lo Shu” and the turtle are added much later.

Place the numbers 1 to 9 on the nine squares so that every row, every column and both diagonals have the same sum. Tap a tile and then a square, or drag it across. The pills beside and below the square show the sums; they turn green as soon as they are right. After that Yang Hui’s square of four is waiting.

The Lo Shu

The numbers 1 to 9, each exactly once: all three rows, all three columns and both diagonals should make 15. The total is 45, divided by three rows: 15.

Tap a tile and then a square, or drag it. Tap a placed tile to pick it up again.

Seals of this station

  1. Solved solve the puzzle
  2. Best effort place the Lo Shu (3×3) without using a hint
  3. Masterpiece place the Lo Shu and then Yang Hui’s square (4×4), both without a hint

Nine rooms

In the chapter “Mingtang” (Hall of Light) the number sequence 2 9 4 7 5 3 6 1 8 stands in the description of the nine rooms. Read in three rows it gives 2-9-4 / 7-5-3 / 6-1-8: every row, column and diagonal makes 15 (our own calculation). It is the mirror image of today’s usual form 4-9-2 / 3-5-7 / 8-1-6.

Source

Da Dai Liji, ch. 67 Mingtang (Chinese Wikisource, with an old commentary)

二九四七五三六一八

Turtle in the commentary

The turtle appears only in the old commentary on this passage, not in the main text: the text uses nine rooms after the “pattern of the turtle’s shell” and therefore these numbers. Who the commentator is and when he wrote, we have not checked.

Source

Da Dai Liji, ch. 67 Mingtang (Chinese Wikisource, with an old commentary)

記用九室,謂法龜文,故取此數

Before: Nine Halls

Before it was called “Lo Shu” the square was known, according to Cammann, as the “Nine Halls” (chiu-kung). Only the Chinese “of the Middle Ages and later” called it Lo Shu.

Source

Cammann, Schuyler: The Evolution of Magic Squares in China, Journal of the American Oriental Society 80 (1960), p. 116-124 (PDF, OCR text)

in mediaeval times and later, the Chinese called it the Lo Shu

The name in the 12th century?

A Wikipedia signpost dates the identification with the legendary Lo Shu chart to the 12th century (after Yoke 2008 and Cammann 1960). We have not checked this against Yoke himself; Cammann 1960 says only “in medieval times and later”.

Source

Wikipedia: Magic square (wikitext, section on China; cites Yoke 2008 and Cammann 1960)

The identification of the 3×3 magic square to the legendary Luoshu chart was only made in the 12th century

Not ancient

Cammann holds that the traditions of a magic square of great antiquity in China are spurious. He believes the Chinese did, however, invent it first (“apparently”). So “over 4000 years old” is a legend.

Source

Cammann, Schuyler: The Evolution of Magic Squares in China, Journal of the American Oriental Society 80 (1960), p. 116-124 (PDF, OCR text)

Chinese traditions of a magic square of great antiquity are spurious

Yang Hui, 1275

Larger magic squares survive in China only with Yang Hui, in 1275. He shows one of order 3, two of order 4 and more up to order 10, but does not call them “magic”; he calls them “number diagrams”.

Source

MacTutor (St Andrews): Yang Hui

Yang does not use the word magic, simply calling them number diagrams

No inventor

Yang Hui claims no invention: according to MacTutor he writes as if presenting well-known facts.

Source

MacTutor (St Andrews): Yang Hui

Again Yang does not claim any originality here, and writes as if he is presenting well known facts

No recipe

Yang Hui did not even describe how such squares are built. That is why there is no construction recipe here; the task is only to place the numbers.

Source

Cammann, Schuyler: The Evolution of Magic Squares in China, Journal of the American Oriental Society 80 (1960), p. 116-124 (PDF, OCR text)

did not even describe the methods of constructing them

Borrowed?

According to Cammann his two squares of four are variations of one already known in the Arabic world, printed around 990 in the encyclopaedia of the Brethren of Purity. Cammann therefore thinks they were probably borrowed.

Source

Cammann, Schuyler: The Evolution of Magic Squares in China, Journal of the American Oriental Society 80 (1960), p. 116-124 (PDF, OCR text)

both of which were variations on one already known long before in the Arabic world, having been published in the encyclopaedia of the Brethren of Purity

Our calculation

Our own calculation, not from a source: there are exactly 8 Lo Shu squares, all from one by turning and mirroring; the 5 is always in the middle, the even numbers in the corners. On the 4×4 grid there are 7,040 magic squares (880 up to turning and mirroring). The four given squares (2, 16, 13 and 11) leave only Yang Hui’s square. We read the numbers of the square ourselves from the MacTutor illustration: 2 16 13 3 / 11 5 8 10 / 7 9 12 6 / 14 4 1 15.