Mathematical Recreations and Essays
Therefore, if when the first rings are off it requires steps to take off the th and th rings, then the number of additional steps required to take off the th and th rings is , that is, is .
To find the whole number of steps necessary to take off an odd number of rings we proceed as follows.
To take off the first ring requires 1 step; to take off the first 3 rings requires 4 additional steps; " " " 5 " " " 4² " " " .
In this way we see that the number of steps required to take off the first rings is , which is equal to .
To find the number of steps necessary to take off an even number of rings we proceed in a similar manner.
To take off the first 2 rings requires 2 steps;
∴ to take off the first 4 rings requires additional steps;
∴ " " " 6 " " " 2 \times 4^2 " " " .
In this way we see that the number of steps required to take off the first rings is , which is equal to .
If we take off or put on the first two rings in one step instead of two separate steps, these results become respectively and .
I give the above analysis because it is the direct solution of a problem attacked by Cardan in 1550 and by Wallis in 1693—in both cases unsuccessfully—and which at one time attracted some attention. I proceed next to give another solution, more elegant though rather artificial.
This solution, which is due to M. Gros*, depends on a convention by which any position of the rings is denoted by a certain number expressed in the binary scale of notation in such a way that a step is indicated by the addition or subtraction of unity.
Let the rings be indicated by circles: if a ring is on the bar, it is represented by a circle drawn above the bar; if the ring is off the bar, it is represented by a circle below the bar. Thus figure i below represents a set of seven rings of which the first two are off the bar, the next three are on it, the sixth is off it, and the seventh is on it.
Denote the rings which are on the bar by the digits 1 or 0 alternately, reckoning from left to right, and denote a ring which is off the bar by the digit assigned to that ring on the bar which is nearest to it on the left of it, or by a 0 if there is no ring to the left of it.
Thus the three positions indicated below are denoted respectively by the numbers written below them. The position represented in figure ii is obtained from that in figure i by putting the first ring on to the bar, while the position represented in figure iii is obtained from that in figure i by taking the fourth ring off the bar.
It follows that every position of the rings is denoted by a number expressed in the binary scale: moreover, since in going from left to right
* Théorie du Baguenodier, by L. Gros, Lyons, 1872. I take the account of this from Lucas, vol. I, part 7.
every ring on the bar gives a variation (that is, 1 to 0 or 0 to 1) and every ring off the bar gives a continuation, the effect of a step by which a ring is taken off or put on the bar is either to subtract unity from this number or to add unity to it. For example, the number denoting the position of the rings in figure ii is obtained from the number denoting that in figure i by adding unity to it. Similarly the number denoting the position of the rings in figure iii is obtained from the number denoting that in figure i by subtracting unity from it.
The position when all the seven rings are off the bar is denoted by the number 0000000: when all of them are on the bar by the number 1010101. Hence to change from one position to the other requires a number of steps equal to the difference between these two numbers in the binary scale. The first of these numbers is 0: the second is equal to , that is, to 85. Therefore 85 steps are required. In a similar way we may show that to put on a set of rings requires steps, that is, steps; and to put on a set of rings requires steps, that is, steps.
M. Gros asserted that it is possible to take from 64 to 80 steps a minute, which in my experience is a rather high estimate. If we accept the lower of these numbers, it would be possible to take off 10 rings in less than 8 minutes; to take off 25 rings would require more than 582 days, each of ten hours work; and to take off 60 rings would
THE EIGHT QUEENS PROBLEM.* The determination of the number of ways in which eight queens can be placed on a chessboard—or more generally, in which queens can be placed on a board of cells—so that no queen can take any other was proposed originally by Nauck in 1850.
In 1874 Dr S. Günther† suggested a method of solution by means of determinants. For, if each symbol represents the corresponding cell of the board, the possible solutions for a board of cells are given by
* On the history of this problem see W. Ahrens, Mathematische Unterhaltungen und Spiele, Leipzig, 1901, chap. ix—a work issued subsequent to the third edition of this book.
† Grumert’s Archiv der Mathematik und Physik, 1874, vol. LVI pp. 281–292.
those terms, if any, of the determinant
in which no letter and no suffix appears more than once.
The reason is obvious. Every term in a determinant contains one and only one element out of every row and out of every column: hence any term will indicate a position on the board in which the queens cannot take one another by moves rook-wise. Again in the above determinant the letters and suffixes are so arranged that all the same letters and all the same suffixes lie along bishop’s paths: hence, if we retain only those terms in each of which all the letters and all the suffixes are different, they will denote positions in which the queens cannot take one another by moves bishop-wise. It is clear that the signs of the terms are immaterial.
In the case of an ordinary chess-board the determinant is of the 8th order, and therefore contains , that is, 40320 terms, so that it would be out of the question to use this method for the usual chess-board of 64 cells or for a board of larger size unless some way of picking out the required terms could be discovered.
A way of effecting this was suggested by Dr J.W.L. Glaisher* in 1874, and as far as I am aware the theory remains as he left it. He showed that if all the solutions of queens on a board of cells were known, then all the solutions of a certain type for queens on a board of cells could be deduced, and that all the other solutions of queens on a board of cells could be obtained without difficulty. The method will be sufficiently illustrated by one instance of its application.
It is easily seen that there are no solutions when and . If there are two terms in the determinant which give solutions, namely, and . To find the solutions when ,
Glaisher proceeded thus. In this case Günther’s determinant is
To obtain those solutions (if any) which involve it is sufficient to append to such of the solutions for a board of 16 cells as do not involve . As neither of those given above involves an we thus get two solutions, namely, and . The solutions which involve , and can be written down by symmetry. The eight solutions thus obtained are all distinct; we may call them of the first type.
The above are the only solutions which can involve elements in the corner squares of the determinant. Hence the remaining solutions are obtainable from the determinant
If, in this, we take the minor of and in it replace by zero every term involving the letter or the suffix 2 we shall get all solutions involving . But in this case the minor at once reduces to . We thus get one solution, namely, . The solutions which involve , , , , , , and can be obtained by symmetry. Of these eight solutions it is easily seen that only two are distinct: these may be called solutions of the second type.
Similarly the remaining solutions must be obtained from the determinant