All public Sources
Public document

Mathematical Recreations and Essays

PDF document375 original pagesAdded to Pandi 6 November 2026
AskTalkView media
Reading progressPage 36 of 81
  • See Quarterly Journal of Mathematics, London, 1862, vol. v, p. 305; or Philosophical Magazine, January, 1884, series 5, vol. XVII, p. 42; also Lucas, vol. II, part vii.

second and third diagrams will answer our purpose equally well and are easier to draw.

Geometric diagram of a five-sided polygon with labeled vertices, connected by curved and straight lines.
Geometric diagram of a circular arrangement of labeled points, with a central circle and surrounding arcs.
Geometric diagram of a circular arrangement of labeled points, with a central circle and surrounding arcs.

The first problem is go “all round the world,” that is, starting from any town, to go to every other town once and only once and to return to the initial town; the order of the nn towns to be first visited being assigned, where nn is not greater than five.

Hamilton’s rule for effecting this was given at the meeting in 1857 of the British Association at Dublin. At each angular point there are three and only three edges. Hence, if we approach a point by one edge, the only routes open to us are one to the right, denoted by rr, and one to the left, denoted by ll. It will be found that the operations indicated on opposite sides of the following equalities are equivalent,

lr2l=rlr,rl2r=lrl,lr3l=r2,rl3r=l2.lr^2l = rlr, \quad rl^2r = lrl, \quad lr^3l = r^2, \quad rl^3r = l^2.

Also the operation l5l^5 or r5r^5 brings us back to the initial point: we may represent this by the equations

l5=1,r5=1.l^5 = 1, \quad r^5 = 1.

To solve the problem for a figure having twenty angular points we must deduce a relation involving twenty successive operations, the total effect of which is equal to unity. By repeated use of the relation l2=rl3rl^2 = rl^3r we see that

1=l5=l2l3=(rl3r)l3={rl3}2={r(rl3r)l}2={r2l3rl}2={r2(rl3r)lrl}2={r3l3rlrl}2.\begin{aligned} 1 = l^5 = l^2l^3 &= (rl^3r)^{l^3} = \{rl^3\}^2 = \{r(rl^3r)l\}^2 \\ &= \{r^2l^3rl\}^2 = \{r^2(rl^3r)lrl\}^2 = \{r^3l^3rlrl\}^2. \end{aligned}

Therefore

{r3l3(rl)2}2=1(i),\{r^3l^3(rl)^2\}^2 = 1 \qquad \text{(i)},

and similarly

{l3r3(lr)2}2=1(ii).\{l^3r^3(lr)^2\}^2 = 1 \qquad \text{(ii)}.

Hence on a dodecahedron either of the operations

rrrlllrlrlrrrrlllrlrllllrrrlllrrrlrlr(i),(ii),\begin{array}{l} r r r l l l r l r l r r r r l l l r l r l \\ l l l r r r l l l r r r l r l r \end{array} \qquad \text{(i)}, \qquad \text{(ii)},

indicates a route which takes the traveller through every town, The arrangement is cyclical, and the route can be commenced at any point in the series of operations by transferring the proper number of letters from one end to the other. The point at which we begin is determined by the order of certain towns which is given initially.

Thus, suppose that we are told that we start from FF and then successively go to BB, AA, UU, and TT, and we want to find a route from TT through all the remaining towns which will end at FF. If we think of ourselves as coming into FF from GG, the path FB FB would be indicated by ll, but if we think of ourselves as coming into FF from EE, the path FB FB would be indicated by rr. The path from BB to AA is indicated by ll, and so on. Hence our first paths are indicated either by l l l rl \ l \ l \ r or by r l l rr \ l \ l \ r. The latter operation does not occur either in (i) or in (ii), and therefore does not fall within our solutions. The former operation may be regarded either as the 1st, 2nd, 3rd, and 4th steps of (ii), or as the 4th, 5th, 6th, and 7th steps of (i). Each of these leads to a route which satisfies the problem. These routes are

FB A U T P O N C D E J K L M Q R S H G F,FB \ A \ U \ T \ P \ O \ N \ C \ D \ E \ J \ K \ L \ M \ Q \ R \ S \ H \ G \ F,

and

FB A U T S R K L M Q P O N C D E J H G F.FB \ A \ U \ T \ S \ R \ K \ L \ M \ Q \ P \ O \ N \ C \ D \ E \ J \ H \ G \ F.

It is convenient to make a mark or to put down a counter at each corner as soon as it is reached, and this will prevent our passing through the same town twice.

A similar game may be played with other solids provided that at each angular point three and only three edges meet. Of such solids a tetrahedron and a cube are the simplest instances, but the reader can make for himself any number of plane figures representing such solids similar to those drawn on the preceding page. Some of these were indicated by Hamilton. In all such cases we must obtain from the formulae analogous to those given above cyclical relations like (i) or (ii) there given. The solution will then follow the lines indicated above. This method may be used to form a rule for describing any maze in which no node is of an order higher than three.

Original PDF link to page 172

For solids having angular points where more than three edges meet—such as the octahedron where at each angular point four edges meet, or the icosahedron where at each angular point five edges meet—we should at each point have more than two routes open to us; hence (unless we suppress some of the edges) the symbolical notation would have to be extended before it could be applied to these solids. I offer the suggestion to anyone who is desirous of inventing a new game.

Another and a very elegant solution of the Hamiltonian dodecahedron problem has been given by M. Hermary. It consists in unfolding the dodecahedron into its twelve pentagons, each of which is attached to the preceding one by only one of its sides; but the solution is geometrical, and not directly applicable to more complicated solids.

Hamilton suggested as another problem to start from any town, to go to certain specified towns in an assigned order, then to go to every other town once and only once, and to end the journey at some given town. He also suggested the consideration of the way in which a certain number of towns should be blocked so that there was no passage through them, in order to produce certain effects. These problems have not, so far as I know, been subjected to mathematical analysis.

KNIGHT'S PATH ON A CHESS-BOARD.

Another geometrical problem on which a great deal of ingenuity has been expended, and of a kind somewhat similar to the Hamiltonian game, consists in moving a knight on a chess-board in such a manner that it shall move successively on to every cell* once and only once. The literature on this subject is so extensive† that I make no pretence to give a full account of the various methods for solving the problem, and I shall content myself by putting together a few notes on some of the solutions I have come across, particularly on those due to De Moivre, Euler, Vandermonde, Warnsdorff, and Roget.

On a board containing an even number of cells the path may or may not be re-entrant, but on a board containing an odd number of

  • The 64 small squares into which a chess-board is divided are termed cells.

† For a bibliography see A. van der Linde, Geschichte und Literatur des Schachspiels, Berlin, 1874, vol. II, pp. 101–111. On the problem see a memoir by P. Volpicelli in Atti della Reale Accademia dei Lincei, Rome, 1872, vol. XXV, pp. 87–162: also Applications de l'Analyse Mathématique au Jeu des échecs by C.F. de Jaenisch, 3 vols., St Petersburg, 1862–3; and General Parmentier, Association Française pour l'avancement des Sciences, 1891, 1892, 1894.

cells it cannot be re-entrant. For, if a knight begins on a white cell, its first move must take it to a black cell, the next to a white cell, and so on. Hence, if its path passes through all the cells, then on a board of an odd number of cells the last move must leave it on a cell of the same colour as that on which it started, and therefore these cells cannot be connected by one move.

The earliest solutions of which I have any knowledge are those given about the end of the seventeenth century by De Montmort and De Moivre*. They apply to the ordinary chess-board of 64 cells, and depend on dividing (mentally) the board into an inner square containing sixteen cells surrounded by an outer ring of cells two deep. If initially the knight is placed on a cell in the outer ring, it moves round that ring always in the same direction so as to fill it up completely—only going into the inner square when absolutely necessary. When the outer ring is filled up the order of the moves required for filling the remaining cells presents but little difficulty. If initially the knight is placed on the inner square the process must be reversed. The method can be applied to square and rectangular boards of all sizes. It is illustrated sufficiently by De Moivre’s solution which is given below, where the numbers indicate the order in which the cells are occupied successively. I place by its side a somewhat similar re-entrant solution, due to Euler, for a board of 36 cells. If a chess-board is used it is convenient to place a counter on each cell as the knight leaves it.

  • I do not know where they were published originally; they were quoted by Ozanam and Montucla, see Ozanam, 1803 edition, vol. I, p. 178; 1840 edition, p. 80.
3449221136392412110355023123740
483362573825213920515463604126
324758615653143198555259642742
4631617442941571845305164328

De Moivre’s Solution.

3021615281971629205142231835
9361726134322321134251103324

Euler’s Thirty-six Cell Solution.

Chess-board layout of 36 numbered cells arranged in a square, with the knight’s path traced through the cells.
Chess-board layout of 36 numbered cells arranged in a square, with the knight’s path traced through the cells.

The next serious attempt to deal with the subject was made by Euler* in 1759: it was due to a suggestion made by L. Bertrand of Geneva, who subsequently (in 1778) issued an account of it. This method is applicable to boards of any shape and size, but in general the solutions to which it leads are not symmetrical and their mutual connexion is not apparent.

Euler commenced by moving the knight at random over the board until it has no move open to it. With care this will leave only a few cells not traversed: denote them by a,b,…a, b, \ldots. His method consists in establishing certain rules by which these vacant cells can be interpolated into various parts of the circuit, and also by which the circuit can be made re-entrant.

Continue reading
Page 36 of 81