All public Sources
Public document

Mathematical Recreations and Essays

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

Original PDF link to page 149 · Original PDF link to page 137

orders, we can construct one of the mnmnth order. For example, a square of 81 cells may be considered as composed of 9 smaller squares each containing 9 cells, and by filling the cells in each of these small squares in the same relative order and taking the small squares themselves in the same order, the square can be constructed easily. Such squares are called composite magic squares.

The second method, which was introduced by Frénicle, consists in surrounding a magic square with a border. Thus in figure xii on the following page the inner square is magic, and it is surrounded with a border in such a way that the whole square is also magic. In this manner from the magic square of the 3rd order we can build up successively squares of the orders 5, 7, 9, &c., that is, any odd magic square. Similarly from the magic square of the 4th order we can build up successively any higher even magic square.

If we construct a magic square of the first n2n^2 numbers by bordering a magic square of (n−2)2(n-2)^2 numbers, the usual process is to reserve for the 4(n−1)4(n-1) numbers in the border the first 2(n−1)2(n-1) natural numbers and the last 2(n−1)2(n-1) numbers. Now the sum of the numbers in each line of a square of the order (n−2)(n-2) is 12(n−2){(n−2)2+1}\frac{1}{2}(n-2)\{(n-2)^2+1\}, and the average is 12{(n−2)2+1}\frac{1}{2}\{(n-2)^2+1\}. Similarly the average number in a square of the nnth order is 12(n2+1)\frac{1}{2}(n^2+1). The difference of these is 2(n−1)2(n-1). We begin then by taking any magic square of the order (n−2)(n-2), and we add to every number in it 2(n−1)2(n-1); this makes the average number 12(n2+1)\frac{1}{2}(n^2+1).

The numbers reserved for the border occur in pairs, n2n^2 and 1, n2−1n^2-1 and 2, n2−2n^2-2 and 3, &c., such that the average of each pair is 12(n2+1)\frac{1}{2}(n^2+1), and they must be bordered on the square so that these numbers are opposite to one another. Thus the bordered square will be necessarily magic, provided that the sum of the numbers in two adjacent sides of the external border is correct. The arrangement of the numbers in the borders will be somewhat facilitated if the number n2+1−pn^2+1-p (which has to be placed opposite to the number pp) is denoted by pˉ\bar{p}, but it is not worth while going into further details here.

It will illustrate sufficiently the general method if I explain how the square in figure xii is constructed. A magic square of the third order is formed by De la Loubère’s rule, and to every number in it 8 is added: the result is the inner square in figure xii. The numbers not used are 25 and 1, 24 and 2, 23 and 3, 22 and 4, 21 and 5, 20 and 6, 19 and 7, 18 and 8. The sum of each pair is 26, and obviously they must be

Original PDF link to page 152 · Original PDF link to page 152 · Original PDF link to page 152

placed at opposite ends of any line.

I believe that with a little patience a magic square of any order can be thus built up, and of course it will have the property that, if each border is successively stripped off, the square will still remain magic. Some examples are given by Violle. This is the method of construction commonly adopted by self-taught mathematicians, many

Magic square of five rows and five columns, with numbers arranged in a pattern of alternating rows and columns.
Bordered Magic Square. Figure xii.
Magic square of five rows and five columns, with numbers arranged in a pattern of alternating rows and columns.
Nasik Magic Square. Figure xiii.

of whom seem to think that the empirical formation of such squares is a valuable discovery.

There are magic circles, rectangles, crosses, diamonds, stars, and other figures: also magic cubes, cylinders, and spheres. The theory of the construction of such figures is of no value, and I cannot spare the space to describe rules for forming them.

HYPER-MAGIC SQUARES.

In recent times attention has been mainly concentrated on the formation of magic squares with the imposition of additional conditions; some of the resulting problems involve mathematical difficulties of a high order.

Nasik Squares.

In one species of hyper-magic squares the squares are formed so that the sums of the numbers along all the rows and columns, both diagonals, and all the broken diagonals are the same. In England these are called nasik squares or pan-diagonal magic squares: in France carrés diaboliques or carrés magiquement magiques. These squares were mentioned by De la Hire, Sauveur, and Euler; but the theory is mainly due to Mr A.H. Frost, who has expounded it in the memoirs mentioned in the footnote on page 123, and to M. Frolow, who treated it in two memoirs, St Petersburg, 1884, and Paris, 1886. Of course a nasik square can be divided by a vertical or horizontal cut and the pieces interchanged without affecting the magical property. By

Original PDF link to page 139

one vertical and one horizontal transposition of this kind any number can be moved to any specified cell.

A nasik square of the fourth order is represented in figure ii on page 121, and one of the fifth order is represented in figure xiii on the preceding page. Nasik squares of the order 6n±16n\pm1 can be constructed by rules analogous to those given by De la Loubère, except that a knight’s and not a bishop’s move must be used in connecting cells filled by consecutive numbers and that for orders higher than five special rules for going from the cell occupied by the number knkn to that occupied by the number kn+1kn+1 have to be laid down.

Doubly-Magic Squares. In another species of hyper-magic squares the problem is to construct a magic square of the nnth order in such a way that if the number in each cell is replaced by its mmth power the

Magic square arranged in eight rows and eight columns, with numbers arranged in a pattern of diagonals and alternating rows.
A Doubly-Magic Square. Figure xiv.

resulting square shall also be magic. Here for example (see figure xiv) is a magic square∗^{*} of the eighth order, the sum of the numbers in each line being equal to 260, so constructed that if the number in each cell is replaced by its square the resulting square is also magic (the sum of the numbers in each line being equal to 11180).

MAGIC PENCILS. Hitherto I have concerned myself with numbers arranged in lines. By reciprocating the figures composed of the


∗^{*} See M. Coccoz in L’Illustration, May 29, 1897.

Original PDF link to page 137 · Original PDF link to page 152

points on which the numbers are placed we obtain a collection of lines forming pencils, and, if these lines be numbered to correspond with the points, the pencils will be magic*. Thus, in a magic square of the nnth order, we arrange n2n^2 consecutive numbers to form 2n+22n+2 lines, each containing nn numbers so that the sum of the numbers in each line is the same. Reciprocally we can arrange n2n^2 lines, numbered consecutively to form 2n+22n+2 pencils, each containing nn lines, so that in each pencil the sum of the numbers designating the lines is the same.

For instance, figure xv represents a magic square of 64 consecutive

Magic square arranged in eight rows and eight columns, with numbers arranged in a repeating pattern.
Figure xv.

numbers arranged to form 18 lines, each of 8 numbers. Reciprocally, figure xvi represents 64 lines arranged to form 18 pencils, each of 8 lines. The method of construction is fairly obvious. The eight-rayed pencil, vertex OO, is cut by two parallels perpendicular to the axis of the pencil, and all the points of intersection are joined cross-wise. This gives 8 pencils, with vertices A,B,…,HA, B, \ldots, H; 8 pencils, with vertices A′,…,H′A', \ldots, H'; one pencil with its vertex at OO; and one pencil with its vertex on the axis of the last-named pencil.

The sum of the numbers in each of the 18 lines in figure xv is the same. To make figure xvi correspond to this we must number the lines in the pencil AA from left to right, 1,9,…,571, 9, \ldots, 57, following the order of the numbers in the first column of the square: the lines in pencil BB must be numbered similarly to correspond to the numbers in the second column of the square, and so on. To prevent confusion in the figure I


  • See Magic-Reciprocals by G. Frankenstein, Cincinnati, 1875.
Line diagram of a central point O above a horizontal row of eight labeled points, with many intersecting lines radiating outward.
Figure xvi.

have not inserted the numbers, but it will be seen that the method of construction ensures that the sum of the 8 numbers which designate the lines in each of these 18 pencils is the same.

We can proceed a step further, if the resulting figure is cut by two other parallel lines perpendicular to the axis, and if the points of their intersection with the cross-joins be joined cross-wise, these new cross-joins will intersect on the axis of the original pencil or on lines

perpendicular to it. The whole figure will now give 838^3 lines, arranged in 244 pencils each of 8 rays, and will be the reciprocal of a magic cube of the 8th order. If we reciprocate back again we obtain a representation in a plane of a magic cube.

MAGIC SQUARE PUZZLES. Many empirical problems, closely related to magic squares, will suggest themselves; but most of them are more correctly described as ingenious puzzles than as mathematical recreations. The following will serve as specimens.

Magic Card Square. The first of these is the familiar problem of placing the sixteen court cards (taken out of a pack) in the form of a square so that no row, no column, and neither of the diagonals shall contain more than one card of each suit and one card of each rank. The solution presents no difficulty, and is indicated in figure xviii on the next page.

Euler’s Officers Problem†. A similar problem, proposed by Euler in 1779, consists in arranging, if it be possible, thirty-six officers taken from six regiments—the officers being in six groups, each consisting of six officers of equal rank, one drawn from each regiment; say officers of rank a,b,c,d,e,fa, b, c, d, e, f, drawn from the 1st, 2nd, 3rd, 4th, 5th, and 6th regiments—in a solid square formation of six by six, so that each row and each file shall contain one and only one officer of each rank and one and only one officer from each regiment. The problem is insoluble.

Continue reading
Page 32 of 81