All public Sources
Public document

Mathematical Recreations and Essays

PDF document375 original pagesAdded to Pandi 6 November 2026
AskTalkView media
Reading progressPage 29 of 81

The development of the theory has been due mainly to French mathematicians. Bachet gave a rule for the construction of any square of an odd order in a form substantially equivalent to one of the rules given by Moschopulus. The formation of magic squares, especially of even squares, was considered by Frénicle and Fermat. The theory was continued by Poignard, De la Hire, Sauveur, D’Ons-en-bray, and Des Ourmes. Ozanam included in his work an essay on magic squares which was amplified by Montucla. From this and from De la Hire’s memoirs the larger part of the materials for this chapter are derived. Like most algebraical problems, the construction of magic squares attracted the attention of Euler, but he did not advance the general theory. In 1837 an elaborate work on the subject was compiled by B. Violle, which is useful as containing numerous illustrations. I give the references in a footnote*.

  • Bachet, Problèmes plaisans, Lyons, 1624, problem XXI, p. 161; Frénicle, Divers Ouvrages de Mathématique par Messieurs de l’Académie des Sciences, Paris,

Original PDF link to page 137

I shall confine myself to establishing rules for the construction of squares subject to no conditions beyond those given in the definition. Rules sufficient for this purpose are contained in the works to which I have just referred and on which I have based this sketch; some extensions and developments will be found in the memoirs mentioned below1693. I shall commence by giving rules for the construction of a square of an odd order, and then shall proceed to similar rules for one of an even order.

It will be convenient to use the following terms. The spaces or small squares occupied by the numbers are called cells. The diagonal from the top left-hand cell to the bottom right-hand cell is called the leading diagonal or left diagonal. The diagonal from the top right-hand cell to the bottom left-hand cell is called the right diagonal.

MAGIC SQUARES OF AN ODD ORDER. I proceed to give methods for constructing odd magic squares, but for simplicity I shall apply them to the formation of squares of the fifth order, though exactly similar


1693, pp. 423–483; with an appendix (pp. 484–507), containing diagrams of all the possible magic squares of the fourth order, 880 in number: Fermat, Opera Mathematica, Toulouse, 1679, pp. 173–178; or Brassinne’s Précis, Paris, 1853, pp. 146–149: Poignard, Traité des Quarrés Sublimes, Brussels, 1704: De la Hire, Mémoires de l’Académie des Sciences for 1705, Paris, 1706, part i, pp. 127–171; part ii, pp. 364–382: Sauveur, Construction des Quarrés Magiques, Paris, 1710: D’Ons-en-bray, Mémoires de l’Académie des Sciences for 1750, Paris, 1754, pp. 241–271: Des Ourmes, Mémoires de Mathématique et de Physique (French Academy), Paris, 1763, vol. IV, pp. 196–241: Ozanam and Montucla, Récréations, part i, chapter XII: Euler, Commentationes Arithmeticae Collectae, St Petersburg, 1849, vol. II, pp. 593–602: Violle, Traité Complet des Carrés Magiques, 3 vols, Paris, 1837–8. A sketch of the history of the subject is given in chap. iv of S. Günther’s Geschichte der mathematischen Wissenschaften, Leipzig, 1876. See also W. Ahrens, Mathematische Unterhaltungen und Spiele, Leipzig, 1901, chapter xii.

  • In England the subject has been studied by R. Moon, Cambridge Mathematical Journal, 1845, vol. IV, pp. 209–214; H. Holditch, Quarterly Journal of Mathematics, London, 1864, vol. VI, pp. 181–189; W.H. Thompson, Ibid., 1870, vol. X, pp. 186–202; J. Horner, Ibid., 1871, vol. XI, pp. 57–65, 123–132, 213–224; S.M. Drach, Messenger of Mathematics, Cambridge, 1873, vol. II, pp. 169–174, 187; A.H. Frost, Quarterly Journal of Mathematics, London, 1878, vol. XV, pp. 34–49, 93–123, 366–368, in which the results of previous memoirs are included: there are also some pamphlets and articles on it of a more popular character. Of recent Continental works on the subject I have no complete bibliography, and probably it is better to omit all rather than give an imperfect list.

proofs will apply equally to any odd square.

  • De la Loubère’s Method. If the reader will look at figure iii he will see one way in which such a square containing 25 cells can be constructed. The middle cell in the top row is occupied by 1. The successive numbers are placed in their natural order in a diagonal line
17241815
23571416
46132022
101219213
11182529

De la Loubère’s Method.

Figure iii.

15 + 220 + 40 + 15 + 310 + 5
20 + 30 + 55 + 210 + 415 + 1
0 + 45 + 110 + 315 + 520 + 2
5 + 510 + 215 + 420 + 10 + 3
10 + 115 + 320 + 50 + 25 + 4

De la Loubère’s Method.

Figure iv.

23619215
101811422
17513219
41225816
11247203

Bachet’s Method.

Figure v.

which slopes upwards to the right, except that (i) when the top row is reached the next number is written in the bottom row as if it came immediately above the top row; (ii) when the right-hand column is reached, the next number is written in the left-hand column, as if it immediately succeeded the right-hand column; and (iii) when a cell which has been filled up already, or when the top right-hand square is reached, the path of the series drops to the row vertically below it and then continues to mount again. Probably a glance at the diagram in figure iii will make this clear.

The reason why such a square is magic can be explained best by expressing the numbers in the scale of notation whose radix is 5 (or n, if the magic square is of the order n), except that 5 is allowed to appear as a unit-digit and 0 is not allowed to appear as a unit-digit. The result is shown in figure iv. From that figure it will be seen that the method of construction ensures that every row and every column shall contain one and only one of each of the unit-digits 1, 2, 3, 4, 5, the sum of which is 15; and also one and only one of each of the radix-digits 0, 5, 10, 15, 20, the sum of which is 50. Hence, as far as rows and columns are concerned, the square is magic. Moreover if the square is odd, each of the diagonals will contain one and only one of each of the unit-digits 1, 2, 3, 4, 5. Also the leading diagonal will contain one and only one


  • De la Loubère, Du Royaume de Siam (Eng. Trans.), London, 1693, vol. II, pp. 227–247. De la Loubère was the envoy of Louis XIV to Siam in 1687–8, and there learnt this method.

of the radix-digits 0,5,10,15,200, 5, 10, 15, 20, the sum of which is 50; and if, as is the case in the square drawn above, the number 10 is the radix-digit to be added to the unit-digits in the right diagonal, then the sum of the radix-digits in that diagonal is also 50. Hence the two diagonals also possess the magical property.

And generally if a magic square of an odd order nn is constructed by De la Loubère’s method, every row and every column must contain one and only one of each of the unit-digits 1,2,3,…,n1, 2, 3, \ldots, n; and also one and only one of each of the radix-digits 0,n,2n,…,n(n−1)0, n, 2n, \ldots, n(n-1). Hence, as far as rows and columns are concerned, the square is magic. Moreover each diagonal will either contain one and only one of the unit-digits or will contain nn unit-digits each equal to 12(n+1)\frac{1}{2}(n+1). It will also either contain one and only one of the radix-digits or will contain nn radix-digits each equal to 12n(n−1)\frac{1}{2}n(n-1). Hence the two diagonals will also possess the magical property. Thus the square will be magic.

I may notice here that, if we place 1 in any cell and fill up the square by De la Loubère’s rule, we shall obtain a square that is magic in rows and in columns, but it will not in general be magic in its diagonals.

It is evident that other squares can be derived from De la Loubère’s square by permuting the symbols properly. For instance, in figure iv, we may permute the symbols 1,2,3,4,51, 2, 3, 4, 5 in 5!5! ways, and we may permute the symbols 0,5,15,200, 5, 15, 20 in 4!4! ways. Any one of these 5!5! arrangements combined with any one of these 4!4! arrangements will give a magic square. Hence we can obtain 2880 magic squares of the fifth order of this kind, though only 720 of them are really distinct. Other squares can however be deduced, for it may be noted that from any magic square, whether even or odd, other magic squares of the same order can be formed by the mere interchange of the row and the column which intersect in a cell on a diagonal with the row and the column which intersect in the complementary cell of the same diagonal.

Bachet’s Method. Another method, very similar to that of De la Loubère, for constructing an odd magic square is as follows. We begin by placing 1 in the cell above the middle one (that is, in a square of the fifth order in the cell occupied by the number 7 in figure iii), and then we write the successive numbers in a diagonal line sloping upwards to the right, subject to the condition that when the cases (i) and (ii) mentioned under De la Loubère’s method occur the rules there

  • Bachet, Problem XXI, p. 161.

given are followed, but when the case (iii) occurs the path of the series rises two rows, i.e. it is continued from one cell to the cell next but one vertically above it, if this cell is above the top row the path continues from the corresponding cell in one of the bottom two rows following the analogy of rule (i) in De la Loubère’s method. Such a square is delineated in figure v on page 124. Bachet’s method leads ultimately to this arrangement; except that the rules are altered so as to make the line slope downwards. This method also gives 720 magic squares of the fifth order.

De la Hire’s Method. I shall now give another rule for the formation of odd magic squares. To form an odd magic square of the order nn by this method, we begin by constructing two subsidiary squares, one of the unit-digits, 1,2,…,n1,2,\ldots,n, and the other of multiples of the radix, namely, 0,n,2n,…,(n−1)n0,n,2n,\ldots,(n-1)n. We then form the magic square by adding together the numbers in the corresponding cells in the two subsidiary squares.

De la Hire gave several ways of constructing such subsidiary squares. I select the following method (props. x and xiv of his memoir) as being the simplest, but I shall apply it to form a square of only the fifth order. It leads to the same results as the second of the two rules given by Moschopulus.

The first of the subsidiary squares (figure vi, below), is constructed thus. First, 3 is put in the top left-hand corner, and then the numbers 1, 2, 4, 5 are written in the other cells of the top line (in any order). Next, the number in each cell of the top line is repeated in all the cells

Continue reading
Page 29 of 81