Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
HOME
Magic squares
Mesosyn method for constructing singly even order (4N + 2) magic squares (e.g. 6, 10, 14, 18,····).
There are many ways to construct magic squares, but the standard (and most simple) way is to follow certain
configurations/formulas which generate regular patterns. Magic squares exist for all values of n, with only one exception:
it is impossible to construct a magic square of order 2 (2x2)
. Magic squares can be classified into three types: odd, doubly even (n divisible by four) and singly even (n even, but not
divisible by four).
Odd magic squares are fairly easily constructed using the either the Siamese (sometimes called the de la Loubere's, or
the Staircase), the Lozenge, or the de Meziriac's methods.
Doubly even magic squares are also easy to generate.
The construction of singly even magic squares is more difficult but several methods exist, including the LUX method for
magic squares (due to John Horton Conway) and the Strachey method for magic squares. These established methods
for creating singly even order magic squqres are not quite elegant as for odd order and doubly-even magic square in the
sense that the methods are non-symmetrical and are largely empirical.
We have developed a method for constructing magic squares of singly even order in a more systemic way.
This method requires specific exchanges between a symmetrical group of four numbers:
↓↓ ↓↓ ↓↓ ↓↓
1 35 3 4 2 6 1 2 3 4 5 6 1 35 3 4 32 6 1 2 3 4 5 6
7 8 9 10 11 12 7 8 9 10 11 12 7 8 9 10 11 12 7 8 9 10 11 12
13 14 15 16 17 18 13 23 15 16 14 18 13 14 15 16 17 18 13 23 15 16 20 18
19 20 21 22 23 24 19 17 21 22 20 24 19 20 21 22 23 24 19 14 21 22 17 24
25 26 27 28 29 30 25 26 27 28 29 30 25 26 27 28 29 30 25 26 27 28 29 30
31 5 33 34 32 36 31 32 33 34 35 36 31 2 33 34 5 36 31 32 33 34 35 36
First example
Step 1: All the numbers are written in the order from left to right across each row in turn, starting from the top left hand
corner.
Those numbers (in brown color) on the diagonals are retained in the same place.
Enter the number of high-value numbers (19-36) in each row.
Enter the number of higher-value numbers in each column.
The higher-value numbers are the ones with higher value when compared with their symmetrical numbers in the same
rows.
For examples, 6>1, 4>3, 10>9, 16>15, 24>19, 29>26 and 34>33.
In a group of 4 symmetrical numbers (for example,7,12,25, and 30), 12 and 30 are counted as higher-value numbers.
Exchange code is the sequence of exchanges you are planning to use to construct the magic square.
Whether the code will work or not can be checked in step 2, the work sheet.
Step 2: Enter the codes into their respective starting positions (Z1 or l⁄l1 positions).
To calculate the number of high-value numbers for each row, Z is counted as 1 since a Z-shape 4-way exchange will
bring only one high-value numbers (19-36) into Z1 position;
l⁄l is counted as 2 since a l⁄l-shape 4-way exchange will bring two high-value numbers to the row into l⁄l1 and l⁄l3
positions;
— is counted as 0 and I is counted as 1.
To calculate the number of higher-value numbers for each column, Z is counted as 2 since it will bring two higher
symmetrical value to the column into Z1 and Z3 positions;
l⁄l is counted as 1 since since it will bring only one higher symmetrical value into l⁄l1 position.
I is counted as 0 and — is counted as 1.
If the code is working, then there will be equal number of high-value numbers in each row and equal number of higher-
value numbers in each column.
(You only need to check the first 3 rows and first 3 columns.)
step 1 step 2: Work sheet
High-value High-value
Exchange Rows: Zl⁄l Z Exchange Rows: Zl⁄l Z
numbers numbers
code → Columns: l⁄lZ l⁄l code → Columns: l⁄lZ l⁄l
(19-36) (19-36)
1 2 3 4 5 6 0 Z l⁄l 3
7 8 9 10 11 12 0 l⁄l Z 3
14 13 15 16 17 18 0 Z l⁄l 3
19 20 21 22 23 24 6
25 26 27 28 29 30 6
31 32 33 34 35 36 6
Higher- Higher-
value 0 0 0 6 6 6 value 3 3 3
numbers numbers
Step 3: First exchange: a Z-type exchange between a group of 4 symmetrical numbers (2,5,32,and 35)
and a l⁄l-type exchange between a group of 4 symmetrical numbers (7,12,25,and 30)
Step 4: Second exchange: a l⁄l-type exchange between a group of 4 symmetrical numbers (3,4,33,and 34)
and a Z-type exchange between a group of 4 symmetrical numbers (13,18,19,and 24)
Step 5: Third exchange: a Z-type exchange between a group of 4 symmetrical numbers (9,10,27,and 28)
and a l⁄l-type exchange between a group of 4 symmetrical numbers (14,17,20,and 23)
Total Total 111 111 Total 111 111 111 111 111 111
Second example
Total Total 111 111 Total 111 111 111 111 111 111
Total 505 505 Total 505 505 505 505 505 505 505 505
↓↓ ↓↓
step 4
Concentric magic square
Second
exchange Rows: l⁄lZZZ Zl⁄lZ Z0 − Exchange Rows: l⁄lZZZ + 4 interchanges
Total Total
(Second Columns: Zl⁄ll⁄ll⁄l l⁄lZl⁄l l⁄l0 I code → Columns: Zl⁄ll⁄ll⁄l + 4 interchanges
layer)
1 99 98 97 96 5 4 3 92 10 505
1 99 98 97 96 5 4 3 92 10 505
90 12 13 84 85 86 87 18 19 11 505
90 12 (88) 87 86 15 84 (13) 19 11 505
80 22 29 71 505
80 (79) 23 24 25 26 27 28 (72) 71
70 39 6x6 magic core 32 61 505
70 69 33 34 35 36 37 38 32 61
60 49 Magic number 42 51 505
60 59 43 44 45 46 47 48 52 51
41 59 || 52 50 505
41 42 53 54 55 56 57 58 49 50
31 69 303 62 40 505
31 39 63 64 65 66 67 68 62 40
21 72 79 30 505
21 (22) 73 74 75 76 77 78 (29) 30
20 82 83 14 15 16 17 88 89 81 505
20 82 (18) 14 16 85 17 (83) 89 81 505
91 2 8 7 6 95 94 93 9 100 505
91 2 8 7 6 95 94 93 9 100 505
Total 505 505 505 505 505 505 505 505 505 505
Total 505 505 505 505
↓↓
↓↓
↓↓
Total 505 505 505 505 505 505 505 505 505 505
Total 303 303
↓↓
↓↓
Total 505 505 505 505 505 505 505 505 505 505
Total 303 303 303 303 303 303
Mesosyn method for constructing doubly even order (4N + 4) magic squares (e.g. 8, 12, 16, 20,····).
step 3 step 4
Second
First exchange Rows: ZZl⁄l l⁄l0 Z Rows: ZZl⁄l l⁄l0 Z
Total exchange Total
(Outer layer) Columns: l⁄ll⁄lZ Z0 l⁄l Columns: l⁄ll⁄lZ Z0 l⁄l
(Second layer)
1 63 62 61 60 3 2 8 260 1 63 62 61 60 3 2 8 260
56 10 11 12 13 14 15 49 56 10 54 12 13 51 15 49 260
48 18 19 20 21 22 23 41 48 47 19 20 21 22 18 41
40 26 27 28 29 30 31 25 40 26 27 28 29 30 31 25
32 34 35 36 37 38 39 33 32 34 35 36 37 38 39 33
17 42 43 44 45 46 47 42 17 23 43 44 45 46 42 42
9 50 51 52 53 54 55 16 9 50 11 52 53 14 55 16 260
57 7 6 4 5 59 58 64 260 57 7 6 4 5 59 58 64 260
step 5 step 6
Third Third
Rows: ZZl⁄l l⁄l0 Z Rows: ZZl⁄l l⁄l0 Z + 1 interchange
exchange Total exchange Total
Columns: l⁄ll⁄lZ Z0 l⁄l Columns: l⁄ll⁄lZ Z0 l⁄l + 1 interchange
(Third layer) (Third layer)
1 63 62 61 60 3 2 8 260 1 63 62 61 60 3 2 8 260
56 10 54 12 13 51 15 49 260 56 10 54 13 12 51 15 49 260
48 47 19 45 20 22 18 41 260 48 47 19 45 20 22 18 41 260
40 26 38 28 29 35 31 25 260-8 40 34 38 28 29 35 31 25 260
32 34 27 36 37 30 39 33 260+8 32 26 27 36 37 30 39 33 260
17 23 43 21 44 46 42 24 260 17 23 43 21 44 46 42 24 260
9 50 11 52 53 14 55 16 260 9 50 11 52 53 14 55 16 260
57 7 6 4 5 59 58 64 260 57 7 6 4 5 59 58 64 260
Total 260 260 260 -1 +1 260 260 260 Total 260 260 260 260 260 260 260 260