All public Sources
Public document

Mathematical Recreations and Essays

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

The following example, mentioned by Legendre as one of exceptional difficulty, illustrates the method. Suppose that we have formed

Chessboard diagram of numbered squares arranged in a rectangular grid, with cells 1 through 22 at the top and cells 55 through 60 at the bottom.
Figure i.
Chessboard diagram of numbered squares arranged in a rectangular grid, with cells 22 through 57 at the top and cells 50 through 13 at the bottom.
Figure ii.

Example of Euler’s Method.

the route given in figure i; namely, 1,2,3,…,59,601, 2, 3, \ldots, 59, 60; and that there are four cells left untraversed, namely, a,b,c,da, b, c, d.

We begin by making the path 1 to 60 re-entrant. The cell 1 commands a cell pp, where pp is 32, 52, or 2. The cell 60 commands a cell qq, where qq is 29, 59, or 51. Then, if any of these values of pp and qq differ by unity, we can make the route re-entrant. This is the case here if p=52,q=51p = 52, q = 51. Thus the cells 1,2,3,…,51;60,59,…,521, 2, 3, \ldots, 51; 60, 59, \ldots, 52 form a


* Mémoires de Berlin for 1759, Berlin, 1766, pp. 310–337; or Commentationes Arithmeticae Collectae, St Petersburg, 1849, vol. i, pp. 337–355.

re-entrant route of 60 moves. Hence, if we replace the numbers 60, 59, \ldots, 52 by 52, 53, \ldots, 60, the steps will be numbered consecutively. I recommend the reader who wishes to follow the subsequent details of Euler’s argument to construct this square on a piece of paper before proceeding further.

Next, we add the cells aa, bb, dd to this route. In the new diagram of 60 cells formed as above the cell aa commands the cells there numbered 51, 53, 41, 25, 7, 5, and 3. It is indifferent which of these we select: suppose we take 51. Then we must make 51 the last cell of the route of 60 cells, so that we can continue with aa, bb, dd. Hence, if the reader will add 9 to every number on the diagram he has constructed, and then replace 61, 62, \ldots, 69 by 1, 2, \ldots, 9, he will have a route which starts from the cell occupied originally by 60, the 60th move is on to the cell occupied originally by 51, and the 61st, 62nd, 63rd moves will be on the cells aa, bb, dd respectively.

It remains to introduce the cell cc. Since cc commands the cell now numbered 25, and 63 commands the cell now numbered 24, this can be effected in the same way as the first route was made re-entrant. In fact the cells numbered 1, 2, \ldots, 24; 63, 62, \ldots, 25, cc form a knight’s path. Hence we must replace 63, 62, \ldots, 25 by the numbers 25, 26, \ldots, 63, and then we can fill up cc with 64. We have now a route which covers the whole board.

Lastly, it remains to make this route re-entrant. First, we must get the cells 1 and 64 near one another. This can be effected thus. Take one of the cells commanded by 1, such as 28, then 28 commands 1 and 27. Hence the cells 64, 63, \ldots, 28; 1, 2, \ldots, 27 form a route; and this will be represented in the diagram if we replace the cells numbered 1, 2, \ldots, 27 by 27, 26, \ldots, 1.

The cell now occupied by 1 commands the cells 26, 38, 54, 12, 14, 16, 28; and the cell occupied by 64 commands the cells 13, 43, 63, 55. The cells 13 and 14 are consecutive, and therefore the cells 64, 63, \ldots, 14; 1, 2, \ldots, 13 form a route. Hence we must replace the numbers 1, 2, \ldots, 13 by 13, 12, \ldots, 1, and we obtain a re-entrant route covering the whole board, which is represented in the second of the diagrams given on the facing page. Euler showed how seven other re-entrant routes can be deduced from any given re-entrant route.

It is not difficult to apply the method so as to form a route which begins on one given cell and ends on any other given cell.

Original PDF link to page 176

Euler next investigated how his method could be modified so as to allow of the imposition of additional restrictions.

An interesting example of this kind is where the first 32 moves are confined to one half of the board. One solution of this is delineated below. The order of the first 32 moves can be determined by Euler’s

| | | | | | | | | | | | | | | | | | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 58 | 43 | 60 | 37 | 52 | 41 | 62 | 35 | 49 | 46 | 57 | 42 | 61 | 36 | 53 | 40 | 44 | 59 | 48 | 51 | 38 | 55 | 34 | 63 | | 47 | 50 | 45 | 56 | 33 | 64 | 39 | 54 | 22 | 7 | 32 | 1 | 24 | 13 | 18 | 15 | 31 | 2 | 23 | 6 | 19 | 16 | 27 | 12 | 8 | 21 | 4 | 29 | 10 | 25 | 14 | 17 | | 3 | 30 | 9 | 20 | 5 | 28 | 11 | 26 | 50 | 45 | 62 | 41 | 60 | 39 | 54 | 35 | 63 | 42 | 51 | 48 | 53 | 36 | 57 | 38 | 46 | 49 | 44 | 61 | 40 | 59 | 34 | 55 | | 43 | 64 | 47 | 52 | 33 | 56 | 37 | 58 | 26 | 5 | 24 | 1 | 20 | 15 | 32 | 11 | 23 | 2 | 27 | 8 | 29 | 12 | 17 | 14 | 6 | 25 | 4 | 21 | 16 | 19 | 10 | 31 | 3 | 22 | 7 | 28 | 9 | 30 | 13 | 18 |

Euler’s Half-board Solution.

Roget’s Half-board Solution.

method. It is obvious that, if to the number of each such move we add 32, we shall have a corresponding set of moves from 33 to 64 which would cover the other half of the board; but in general the cell numbered 33 will not be a knight’s move from that numbered 32, nor will 64 be a knight’s move from 1.

Euler however proceeded to show how the first 32 moves might be determined so that, if the half of the board containing the corresponding moves from 33 to 64 was twisted through two right angles, the two routes would become united and re-entrant. If xx and yy are the numbers of a cell reckoned from two consecutive sides of the board, we may call the cell whose distances are respectively xx and yy from the opposite sides a complementary cell. Thus the cells (x,y)(x,y) and (9−x,9−y)(9-x,9-y) are complementary, where xx and yy denote respectively the column and row occupied by the cell. Then in Euler’s solution the numbers in complementary cells differ by 32: for instance, the cell (3,7)(3,7) is complementary to the cell (6,2)(6,2), the one is occupied by 57, the other by 25.

Roget’s method, which is described later, can be also applied to give half-board solutions. The result is indicated on this page. The close of Euler’s memoir is devoted to showing how the method could be applied to crosses and other rectangular figures. I may note in particular his elegant re-entrant symmetrical solution for a square of 100 cells.

The next attempt of any special interest is due to Vandermonde*, who reduced the problem to arithmetic. His idea was to cover the board by two or more independent routes taken at random, and then to connect the routes. He defined the position of a cell by a fraction x/yx/y, whose numerator xx is the number of the cell from one side of the board, and whose denominator yy is its number from the adjacent side of the board; this is equivalent to saying that xx and yy are the co-ordinates of a cell. In a series of fractions denoting a knight’s path, the differences between the numerators of two consecutive fractions can be only one or two, while the corresponding difference between their denominators must be two or one respectively. Also xx and yy cannot be less than 1 or greater than 8. The notation is convenient, but Vandermonde applied it merely to obtain a particular solution of the problem for a board of 64 cells: the method by which he effected this is analogous to that established by Euler, but it is applicable only to squares of an even order. The route that he arrives at is defined in his notation by the following fractions.

55,43,24,45,53,74,82,61,73,81,62,83,71,52,64,85,75,84,65,54,46,25,17,38,26,\frac{5}{5}, \frac{4}{3}, \frac{2}{4}, \frac{4}{5}, \frac{5}{3}, \frac{7}{4}, \frac{8}{2}, \frac{6}{1}, \frac{7}{3}, \frac{8}{1}, \frac{6}{2}, \frac{8}{3}, \frac{7}{1}, \frac{5}{2}, \frac{6}{4}, \frac{8}{5}, \frac{7}{5}, \frac{8}{4}, \frac{6}{5}, \frac{5}{4}, \frac{4}{6}, \frac{2}{5}, \frac{1}{7}, \frac{3}{8}, \frac{2}{6}, 18,37,16,28,47,35,14,22,41,32,13,21,31,23,12,32,13,21,42,34,15,27,48,36,44,56,\frac{1}{8}, \frac{3}{7}, \frac{1}{6}, \frac{2}{8}, \frac{4}{7}, \frac{3}{5}, \frac{1}{4}, \frac{2}{2}, \frac{4}{1}, \frac{3}{2}, \frac{1}{3}, \frac{2}{1}, \frac{3}{1}, \frac{2}{3}, \frac{1}{2}, \frac{3}{2}, \frac{1}{3}, \frac{2}{1}, \frac{4}{2}, \frac{3}{4}, \frac{1}{5}, \frac{2}{7}, \frac{4}{8}, \frac{3}{6}, \frac{4}{4}, \frac{5}{6}, 75,87,68,76,85,67,86,78,57,65,84,72,51,63.\frac{7}{5}, \frac{8}{7}, \frac{6}{8}, \frac{7}{6}, \frac{8}{5}, \frac{6}{7}, \frac{8}{6}, \frac{7}{8}, \frac{5}{7}, \frac{6}{5}, \frac{8}{4}, \frac{7}{2}, \frac{5}{1}, \frac{6}{3}.

The path is re-entrant but unsymmetrical. Had he transferred the first three fractions to the end of this series he would have obtained two symmetrical circuits of thirty-two moves joined unsymetrically, and might have been enabled to advance further in the problem. Vandermonde also considered the case of a route in a cube.

In 1773 Collini† proposed the exclusive use of symmetrical routes arranged without reference to the initial cell, but connected in such a manner as to permit of our starting from it. This is the foundation of the modern manner of attacking the problem. The method was reinvented in 1825 by Pratt‡, and in 1840 by Roget, and has been subsequently employed by various writers. Neither Collini nor Pratt showed skill in using this method. The rule given by Roget is described later.

One of the most ingenious of the solutions of the knight’s path is


* L’Histoire de l’Académie des Sciences for 1771, Paris, 1774, pp. 566-574.

† Solution du Problème du Cavalier au Jeu des échecs, Mannheim, 1773.

‡ Studies of Chess, sixth edition, London, 1825.

that given in 1823 by Warnsdorff*. His rule is that the knight must be moved always to one of the cells from which it will command the fewest squares not already traversed. The solution is not symmetrical and not re-entrant; moreover it is difficult to trace practically. The rule has not been proved to be true, but no exception to it is known: apparently it applies also to all rectangular boards which can be covered completely by a knight. It is somewhat curious that in most cases a single false step, except in the last three or four moves, will not affect the result.

Warnsdorff added that when, by the rule, two or more cells are open to the knight, it may be moved to either or any of them indifferently. This is not so, and with great ingenuity two or three cases of failure have been constructed, but it would require exceptionally bad luck to happen accidentally on such a route.

The above methods have been applied to boards of various shapes, especially to boards in the form of rectangles, crosses, and circles†.

Continue reading
Page 37 of 81