Yang Hui's magic square of Hexagrams
(by Gua order)
Top
Btm
abcdefgh
86104036202636401
75213145115504916
64520194618474817
53629303531343332
40560590658070857
31253541155100956
22144432242232441
12837382739262540

All the columns, rows and the two diagonals sum up to 260


In the year 1261, Yang Hui mentioned in a mathematics book he published about a triangular arrangement of numbers and said that a mathematician (Jia Xian) before him had used it. This triangle of numbers is what is known in the western world as "Pascal Triangle".


I found a regular way of filling up the 64 cells to get Yang Hui's Magic Square. It involves a set of regular steps:
Horizontally, start with 1 at the upper right corner, skip two cells, hop one cell and move (skip no cell) to the next. Fill up the next number as you move.
Sometimes the steps are reversed. (i.e. move to the next cell, skip one, then hop two cells) as you fill up the numbers.
Vertically, move down (or up) four spaces plus one space left (or right) and fill up the next number.
Resume the horizontal actions for two lines with one step down (or up) to the next line until you come back to the left side for the vertical jump.
Vertical jumps always take place at the left side.
When you reach number 32 it is a bit tricky. You simply move left to the next cell and continue the process.
As more cells are filled up the process becomes simpler. You can even follow the next blank cells
In the drawing below, follow the arrows to fill in the numbers. Then try doing it on your own.



Back to Main Page.