In recreational mathematics, a magic square of order n is an arrangement of n² numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant. A normal magic square contains the integers from 1 to n². The term "magic square" is also sometimes used to refer to any of various types of word square.
Normal magic squares exist for all orders n ≥ 1 except n = 2, although the case n = 1 is trivial—it consists of a single cell containing the number 1. The smallest nontrivial case, shown below, is of order 3. The constant sum in every row, column and diagonal is called the magic sum or magic constant, M. The magic constant of a normal magic square depends only on n and has the value
The middle number can be found by
The Lo Shu Square, as the magic square on the turtle shell is called, is the unique normal magic square of order three in which 1 is at the bottom and 2 is in the upper right corner. Every normal magic square of order three is obtained from the Lo Shu by rotation or reflection.
The Square of Lo Shu is also referred to as the Magic Square of Saturn or Cronus, which thereby denotes it is the square of time. Its numerical value is obtained from the workings of the I Ching when the Trigrams are placed in an order given in the first river map, the Ho Tu or Yellow River. The Ho Tu produces 4 squares of Hexagrams 8 x 8 in its outer values of 1 to 6, 2 to 7, 3 to 8, and 4 to 9, and these outer squares can then be symmetrically added together to give an inner central square of 5 to 10. The central values of the Ho Tu are those of the Lo Shu (so they work together), as in the total value of 15 x 2 (light and dark) is found the exact number of years in the cycle of Equinoxal Precession (12,960 x 2 = 25,920). The Ho Tu produces a total of 40 light and 40 dark numbers called the days and nights (the alternations of light and dark), and a total of 8 x 8 x 8 Hexagrams whose opposite symmetrical addition = 8640, therefore each value of a square is called a season as it = 2160. These are the exact amount of hours in a 360 day year (8640), and also 2160 years = an aeon (12 aeons = 25,920 yrs).
To validate the values contained in the 2 river maps (Ho Tu and Lo Shu) the I Ching provides numbers of Heaven and Earth that are the 'Original Trigrams' (father and mother) from 1 to 10. Heaven or a Trigram with all unbroken lines (light lines - yang) have odd numbers 1,3,5,7,9, and Earth a Trigram with all broken lines have even numbers 2,4,6,8,10. If each of the Trigram's lines is given a value by multiplying the numbers of Heaven and Earth, then the value of each line in Heaven 1 would be 1 + 2 + 3 = 6, and its partner in the Ho Tu of Earth 6 would be 6 + 12 + 18 = 36, these 2 'Original Trigrams' thereby produce 6 more Trigrams (or children in all their combinations) - and when each sequence of Trigrams are placed at right angles to each other they produce an 8 x 8 square of Hexagrams (or cubes) that each have 6 lines of values. From this simple point the complex structure of the maths evolves as a hexadecimal progression, and it is the hexagon that is the link to the turtle or tortoise shell. In Chinese texts of the I Ching the moon is symbolic of water (darkness) whose transformations or changes create the light or fire - the dark value 6 creates the light when its number is increased by 1. This same princple can be found in ancient calendars such as the Egyptian, as the 360 day year of 8640 hrs was divided by a 7th or 72 part to produce the 5 extra days or 120 hours on which the gods were born. It takes 72 year for the heavens to move 1 degree through its Precession.
Yang Hui was one of the first mathematicians to study magic squares, or vertical and horizontal diagrams as they were called. He created several magic squares, including 4th order ones.
The Kubera-Kolam is a floor painting used in India which is in the form of a magic square of order three. It is essentially the same as the Lo Shu Square, but with 19 added to each number, giving a magic constant of 72.
The order-4 magic square in Albrecht Dürer's engraving Melancholia I is believed to be the first seen in European art. It is very similar to Yang Hui's square, which was created in China about 250 years before Dürer's time. The sum 34 can be found in the rows, columns, diagonals, each of the quadrants, the center four squares, the corner squares, the four outer numbers clockwise from the corners (3+8+14+9) and likewise the four counter-clockwise (the locations of four queens in the two solutions of the 8 queens puzzle *), the two sets of four symmetrical numbers (2+8+9+15 and 3+5+12+14) and the sum of the middle two entries of the two outer columns and rows (e.g. 5+9+8+12), as well as several kite-shaped quartets, e.g. 3+5+11+15; the two numbers in the middle of the bottom row give the date of the engraving: 1514.
The Passion façade of the Sagrada Família church in Barcelona, designed by sculptor Josep Subirachs, features a 4×4 magic square:
The magic sum of the square is 33, the age of Jesus at the time of the Passion. Structurally, it is very similar to the Melancholia magic square, but it has had the numbers in four of the cells reduced by 1.
The same pattern can be achieved starting from the central column of the first row; In this case the fundamental movement is diagonally up and right, one step at a time, and if a filled square is encountered, one moves vertically down one square instead, then continuing as before. When a move would leave the square, it is wrapped around the last row or first column, respectively.
Similar patterns can also be obtained by starting from other squares.
| Order 3 | Order 5 | Order 9 |
| M = 216 | M = 6720 |
Over the years, many mathematicians, including Euler have worked on magic squares, and discovered fascinating relations.
| 17 | 89 | 71 |
| 113 | 59 | 5 |
| 47 | 29 | 101 |
Recreational mathematics | Magic squares | Unsolved problems in mathematics | Luck
Magisches Quadrat | Cuadrado mágico | Magia kvadrato | مربع وفقی | Carré magique (mathématiques) | Cadrado máxico | 마방진 | Magiala quadrato | Quadrato magico | ריבוע קסם | Magisch vierkant | 魔方陣 | Kwadrat magiczny (matematyka) | Quadrado mágico | Pătrat magic | Магический квадрат | Magični kvadrat | Magisk kvadrat | จัตุรัสกล | 幻方
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Magic square".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world