All public Sources
Public document

Mathematical Recreations and Essays

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

Therefore, if when the first mm rings are off it requires xx steps to take off the (m+1)(m+1)th and (m+2)(m+2)th rings, then the number of additional steps required to take off the (m+3)(m+3)th and (m+4)(m+4)th rings is 1+{2(x−1)+1}+1+{2(x−1)+1}1+\{2(x-1)+1\}+1+\{2(x-1)+1\}, that is, is 4x4x.

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; ∴\therefore to take off the first 3 rings requires 4 additional steps; ∴\therefore " " " 5 " " " 4² " " " .

In this way we see that the number of steps required to take off the first 2n+12n+1 rings is 1+4+42+⋯+4n1+4+4^2+\cdots+4^n, which is equal to 13(22n+2−1)\frac{1}{3}(2^{2n+2}-1).

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 2×42 \times 4 additional steps;

∴ " " " 6 " " " 2 \times 4^2 " " " .

In this way we see that the number of steps required to take off the first 2n2n rings is 2+(2×4)+(2×42)+⋯+(2×4n−1)2+(2 \times 4)+(2 \times 4^2)+\cdots+(2 \times 4^{n-1}), which is equal to 13(22n+1−2)\frac{1}{3}(2^{2n+1}-2).

If we take off or put on the first two rings in one step instead of two separate steps, these results become respectively 22n2^{2n} and 22n−1−12^{2n-1}-1.

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.

Line diagram of three binary numbers, each with seven rings, arranged beside a horizontal bar.
Figure i. Figure ii. Figure iii.

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 26+24+22+12^6 + 2^4 + 2^2 + 1, that is, to 85. Therefore 85 steps are required. In a similar way we may show that to put on a set of 2n+12n + 1 rings requires (1+21+22+…+22n)(1 + 2^1 + 2^2 + \ldots + 2^{2n}) steps, that is, 13(22n+2−1)\frac{1}{3}(2^{2n+2} - 1) steps; and to put on a set of 2n2n rings requires (2+23+…+22n−1)(2 + 2^3 + \ldots + 2^{2n-1}) steps, that is, 13(2n+1−2)\frac{1}{3}(2^{n+1} - 2) steps.

Line diagram of three binary numbers, each with seven rings, arranged beside a horizontal bar.
I append a table indicating the steps necessary to take off the first four rings from a set of five rings. The diagrams in the middle column show the successive position of the rings after each step. The number following each diagram indicates that position, each number being obtained from the one above it by the addition of unity. The steps which are bracketed together can be made in one movement, and, if thus effected, the whole process is completed in 7 movements instead of 10 steps: this is in accordance with the formula given above.

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

Diagram of chessboard positions and binary strings, showing the initial arrangement and ten subsequent steps, with queens placed in alternating rows.
necessitate no less than 768614, 336404, 564650 steps, and would require nearly 55000, 000000 years work—assuming of course that no mistakes were made.

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 nn queens can be placed on a board of n2n^2 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 n2n^2 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

Mathematical determinant with rows of letters and suffixes, and a row of asterisks.

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 8!8!, 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 nn queens on a board of n2n^2 cells were known, then all the solutions of a certain type for n+1n+1 queens on a board of (n+1)2(n+1)^2 cells could be deduced, and that all the other solutions of n+1n+1 queens on a board of (n+1)2(n+1)^2 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 n=2n=2 and n=3n=3. If n=4n=4 there are two terms in the determinant which give solutions, namely, b2c5γ3β6b_2c_5\gamma_3\beta_6 and c3β2b6γ5c_3\beta_2b_6\gamma_5. To find the solutions when n=5n=5,

Glaisher proceeded thus. In this case Günther’s determinant is

∣a1b2c3d4e5β2a3b4c5d6γ3β4a5b6c7δ4γ5β6a7b8ε5δ6γ7β8a9∣\left|\begin{array}{ccccc} a_1 & b_2 & c_3 & d_4 & e_5 \\ \beta_2 & a_3 & b_4 & c_5 & d_6 \\ \gamma_3 & \beta_4 & a_5 & b_6 & c_7 \\ \delta_4 & \gamma_5 & \beta_6 & a_7 & b_8 \\ \varepsilon_5 & \delta_6 & \gamma_7 & \beta_8 & a_9 \end{array}\right|

To obtain those solutions (if any) which involve a9a_9 it is sufficient to append a9a_9 to such of the solutions for a board of 16 cells as do not involve aa. As neither of those given above involves an aa we thus get two solutions, namely, b2c5γ3β6a9b_2c_5\gamma_3\beta_6a_9 and c3β2b6γ5a9c_3\beta_2b_6\gamma_5a_9. The solutions which involve a1a_1, e5e_5 and ε5\varepsilon_5 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

∣0b2c3d40β2a3b4c5d6γ3β4a5b6c7δ4γ5β6a7b80δ6γ7β80∣\left|\begin{array}{ccccc} 0 & b_2 & c_3 & d_4 & 0 \\ \beta_2 & a_3 & b_4 & c_5 & d_6 \\ \gamma_3 & \beta_4 & a_5 & b_6 & c_7 \\ \delta_4 & \gamma_5 & \beta_6 & a_7 & b_8 \\ 0 & \delta_6 & \gamma_7 & \beta_8 & 0 \end{array}\right|

If, in this, we take the minor of b2b_2 and in it replace by zero every term involving the letter bb or the suffix 2 we shall get all solutions involving b2b_2. But in this case the minor at once reduces to d6a5δ4β8d_6a_5\delta_4\beta_8. We thus get one solution, namely, b2d6a5δ4β8b_2d_6a_5\delta_4\beta_8. The solutions which involve β2\beta_2, δ4\delta_4, δ6\delta_6, β8\beta_8, b8b_8, d6d_6, and d4d_4 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

∣00c3000a3b4c50γ3β4a5b6c70γ5β6a7000γ700∣\left|\begin{array}{ccccc} 0 & 0 & c_3 & 0 & 0 \\ 0 & a_3 & b_4 & c_5 & 0 \\ \gamma_3 & \beta_4 & a_5 & b_6 & c_7 \\ 0 & \gamma_5 & \beta_6 & a_7 & 0 \\ 0 & 0 & \gamma_7 & 0 & 0 \end{array}\right|
Continue reading
Page 23 of 81