The method was surprising in its effectiveness and simplicity:
"I hope that it will not be unacceptable that I give the rules and the demonstration of this method, which is surprising for its extreme facility to execute a thing, which has appeared difficult to our Mathematicians"
—
Simon de la Loubère, A new historical relation of the kingdom of Siam.[5]
First, an arithmetic progression has to be chosen (such as the simple progression 1,2,3,4,5,6,7,8,9 for a square with three rows and columns (the Lo Shu square)).
Then, starting from the central box of the first row with the number 1 (or the first number of any arithmetic progression), the fundamental movement for filling the boxes is diagonally up and right (↗), one step at a time. When a move would leave the square, it is wrapped around to the last row or first column, respectively.
If a filled box is encountered, one moves vertically down one box (↓) instead, then continuing as before.
Order-3 magic squares
More information step 1, step 2 ...
Close
More information step 5, step 6 ...
Close
Order-5 magic squares
More information Step 1, Step 2 ...
Close
More information Step 4, Step 5 ...
|
Step 5 |
| | 1 | 8 | 15 |
| 5 | 7 | 14 | |
4 | 6 | 13 | | |
10 | 12 | | | 3 |
11 | | | 2 | 9 |
|
Step 6 |
17 | 24 | 1 | 8 | 15 |
23 | 5 | 7 | 14 | 16 |
4 | 6 | 13 | 20 | 22 |
10 | 12 | 19 | 21 | 3 |
11 | 18 | 25 | 2 | 9 |
|
Close
Other sizes
Any n-odd square ("odd-order square") can be thus built into a magic square. The Siamese method does not work however for n-even squares ("even-order squares", such as 2 rows/ 2 columns, 4 rows/ 4 columns etc...).
More information Order 3, Order 5 ...
|
Order 5 |
17 | 24 | 1 | 8 | 15 |
23 | 5 | 7 | 14 | 16 |
4 | 6 | 13 | 20 | 22 |
10 | 12 | 19 | 21 | 3 |
11 | 18 | 25 | 2 | 9 |
|
Order 9 |
47 | 58 | 69 | 80 | 1 | 12 | 23 | 34 | 45 |
57 | 68 | 79 | 9 | 11 | 22 | 33 | 44 | 46 |
67 | 78 | 8 | 10 | 21 | 32 | 43 | 54 | 56 |
77 | 7 | 18 | 20 | 31 | 42 | 53 | 55 | 66 |
6 | 17 | 19 | 30 | 41 | 52 | 63 | 65 | 76 |
16 | 27 | 29 | 40 | 51 | 62 | 64 | 75 | 5 |
26 | 28 | 39 | 50 | 61 | 72 | 74 | 4 | 15 |
36 | 38 | 49 | 60 | 71 | 73 | 3 | 14 | 25 |
37 | 48 | 59 | 70 | 81 | 2 | 13 | 24 | 35 |
|
Close
Other values
Any sequence of numbers can be used, provided they form an arithmetic progression (i.e. the difference of any two successive members of the sequence is a constant). Also, any starting number is possible. For example the following sequence can be used to form an order 3 magic square according to the Siamese method (9 boxes): 5, 10, 15, 20, 25, 30, 35, 40, 45 (the magic sum gives 75, for all rows, columns and diagonals). The magic sum in these cases will be the sum of the arithmetic progression used divided by the order of the magic square.
More information Order 3 ...
Order 3 |
40 | 5 | 30 |
15 | 25 | 35 |
20 | 45 | 10 |
Close
Other starting points
It is possible not to start the arithmetic progression from the middle of the top row, but then only the row and column sums will be identical and result in a magic sum, whereas the diagonal sums will differ. The result will thus not be a true magic square:
More information Order 3 ...
Order 3 |
500 | 700 | 300 |
900 | 200 | 400 |
100 | 600 | 800 |
Close
Rotations and reflections
Numerous other magic squares can be deduced from the above by simple rotations and reflections.