Al-Buni
Another method of arabic origin was published around 1200 by Ahmad al-Buni, who lived in what is now Algeria. However, it did not come from al-Buni himself, who only presented it in one of his publications. To create a bordered magic square of order n=2k + 1, proceed in the following order.
- The first k odd numbers are placed in the left column. You start above the lower left corner and enter the numbers in ascending order, always leaving one cell free.
- The procedure for the next k odd numbers is similar. You start left of the top right corner and place further numbers to the left, skipping one cell at a time.
- Now the even numbers follow. You start two places above the lower right corner, skip one cell at a time and place k − 1 even numbers upwards.
- The last k even numbers are placed in the bottom row. You start in the lower right corner and place the numbers to the left. As with the other number sequences, one cell is skipped again.
Finally, the fields that are still free are filled with the complements of the numbers already entered. It is important, however, that two places of the border remain free. Only 2n − 3 numbers were entered and the bottom left and top right corners were not filled.
Applying these steps with the rest of the borders, you can see that all cells of the main diagonals have been left empty. They are now filled from the top right to the bottom left with the numbers that have not yet been entered until the complete multi-bordered magic square is finally created.