Amusements in Mathematics
From this book
337.—THE FOUR KANGAROOS.—solution
A pretty symmetrical solution to this puzzle is shown in the diagram. Each of the four kangaroos makes his little excursion and returns to his corner, without ever entering a square that has been visited by another kangaroo and without crossing the central line. It will at once occur to the reader, as a possible improvement of the puzzle, to divide the board by a central vertical line and make the condition that this also shall not be crossed. This would mean that each kangaroo had to confine himself to a square 4 by 4, but it would be quite impossible, as I shall explain in the next two puzzles.
338.—THE BOARD IN COMPARTMENTS.—solution
In attempting to solve this problem it is first necessary to take the two distinctive compartments of twenty and twelve squares respectively and analyse them with a view to deter mining where the necessary points of entry and exit lie. In the case of the larger compartment it will be found that to complete a tour of it we must begin and end on two of the outside squares on the long sides. But though you may start at any one of these ten squares, you are restricted as to those at which you can end, or (which is the same thing) you may end at whichever of these you like, provided you begin your tour at certain particular squares. In the case of the smaller compartment you are compelled to begin and end at one of the six squares lying at the two narrow ends of the compartments, but similar restrictions apply as in the other instance. A very little thought will show that in the case of the two small compartments you must begin and finish at the ends that lie together, and it then follows that the tours in the larger compartments must also start and end on the contiguous sides.
In the diagram given of one of the possible solutions it will be seen that there are eight places at which we may start this particular tour; but there is only one route in each case, because we must complete the compartment in which we find ourself before passing into another. In any solution we shall find that the squares distinguished by stars must be entering or exit points, but the law of reversals leaves us the option of making the other connections either at the diamonds or at the circles. In the solution worked out the diamonds are used, but other variations occur in which the circle squares are employed instead. I think these remarks explain all the essential points in the puzzle, which is distinctly instructive and interesting.
339.—THE FOUR KNIGHTS' TOURS.—solution
It will be seen in the illustration how a chessboard may be divided into four parts, each of the same size and shape, so that a complete re-entrant knight's tour may be made on each portion. There is only one possible route for each knight and its reversal.
340.—THE CUBIC KNIGHT'S TOUR.—solution
If the reader should cut out the above diagram, fold it in the form of a cube, and stick it together by the strips left for that purpose at the edges, he would have an interesting little curiosity. Or he can make one on a larger scale for himself. It will be found that if we imagine the cube to have a complete chessboard on each of its sides, we may start with the knight on any one of the 384 squares, and make a complete tour of the cube, always returning to the starting-point. The method of passing from one side of the cube to another is easily understood, but, of course, the difficulty consisted in finding the proper points of entry and exit on each board, the order in which the different boards should be taken, and in getting arrangements that would comply with the required conditions.
The fewest possible moves, counting every move separately, are sixteen. But the puzzle may be solved in seven plays, as follows, if any number of successive moves by one frog count as a single play. All the moves contained within a bracket are a single play; the numbers refer to the toadstools: (1—5), (3—7, 7—1), (8—4, 4—3, 3—7), (6—2, 2—8, 8—4, 4—3), (5—6, 6—2, 2—8), (1—5, 5—6), (7—1).
This is the familiar old puzzle by Guarini, propounded in 1512, and I give it here in order to explain my "buttons and string" method of solving this class of moving-counter problem.
Diagram A shows the old way of presenting Guarini's puzzle, the point being to make the white knights change places with the black ones. In "The Four Frogs" presentation of the idea the possible directions of the moves are indicated by lines, to obviate the necessity of the reader's understanding the nature of the knight's move in chess. But it will at once be seen that the two problems are identical. The central square can, of course, be ignored, since no knight can ever enter it. Now, regard the toadstools as buttons and the connecting lines as strings, as in Diagram B. Then by disentangling these strings we can clearly present the diagram in the form shown in Diagram C, where the relationship between the buttons is precisely the same as in B. Any solution on C will be applicable to B, and to A. Place your white knights on 1 and 3 and your black knights on 6 and 8 in the C diagram, and the simplicity of the solution will be very evident. You have simply to move the knights round the circle in one direction or the other. Play over the moves given above, and you will find that every little difficulty has disappeared.
In Diagram D I give another familiar puzzle that first appeared in a book published in Brussels in 1789, Les Petites Aventures de Jerome Sharp. Place seven counters on seven of the eight points in the following manner. You must always touch a point that is vacant with a counter, and then move it along a straight line leading from that point to the next vacant point (in either direction), where you deposit the counter. You proceed in the same way until all the counters are placed. Remember you always touch a vacant place and slide the counter from it to the next place, which must be also vacant. Now, by the "buttons and string" method of simplification we can transform the diagram into E. Then the solution becomes obvious. "Always move to the point that you last moved from." This is not, of course, the only way of placing the counters, but it is the simplest solution to carry in the mind.
There are several puzzles in this book that the reader will find lend themselves readily to this method.
342.—THE MANDARIN'S PUZZLE.—solution
The rather perplexing point that the solver has to decide for himself in attacking this puzzle is whether the shaded numbers (those that are shown in their right places) are mere dummies or not. Ninety-nine persons out of a hundred might form the opinion that there can be no advantage in moving any of them, but if so they would be wrong.
The shortest solution without moving any shaded number is in thirty-two moves. But the puzzle can be solved in thirty moves. The trick lies in moving the 6, or the 15, on the second move and replacing it on the nineteenth move. Here is the solution: 2, 6, 13, 4, 1, 21, 4, 1, 10, 2, 21, 10, 2, 5, 22, 16, 1, 13, 6, 19, 11, 2, 5, 22, 16, 5, 13, 4, 10, 21. Thirty moves.
343.—EXERCISE FOR PRISONERS.—solution
There are eighty different arrangements of the numbers in the form of a perfect knight's path, but only forty of these can be reached without two men ever being in a cell at the same time. Two is the greatest number of men that can be given a complete rest, and though the knight's path can be arranged so as to leave either 7 and 13, 8 and 13, 5 and 7, or 5 and 13 in their original positions, the following four arrangements, in which 7 and 13 are unmoved, are the only ones that can be reached under the moving conditions. It therefore resolves itself into finding the fewest possible moves that will lead up to one of these positions. This is certainly no easy matter, and no rigid rules can be laid down for arriving at the correct answer. It is largely a matter for individual judgment, patient experiment, and a sharp eye for revolutions and position.
As a matter of fact, the position C can be reached in as few as sixty-six moves in the following manner: 12, 11, 15, 12, 11, 8, 4, 3, 2, 6, 5, 1, 6, 5, 10, 15, 8, 4, 3, 2, 5, 10, 15, 8, 4, 3, 2, 5, 10, 15, 8, 4, 12, 11, 3, 2, 5, 10, 15, 6, 1, 8, 4, 9, 8, 1, 6, 4, 9, 12, 2, 5, 10, 15, 4, 9, 12, 2, 5, 3, 11, 14, 2, 5, 14, 11 = 66 moves. Though this is the shortest that I know of, and I do not think it can be beaten, I cannot state positively that there is not a shorter way yet to be discovered. The most tempting arrangement is certainly A; but things are not what they seem, and C is really the easiest to reach.
If the bottom left-hand corner cell might be left vacant, the following is a solution in forty-five moves by Mr. R. Elrick: 15, 11, 10, 9, 13, 14, 11, 10, 7, 8, 4, 3, 8, 6, 9, 7, 12, 4, 6, 9, 5, 13, 7, 5, 13, 1, 2, 13, 5, 7, 1, 2, 13, 8, 3, 6, 9, 12, 7, 11, 14, 1, 11, 14, 1. But every man has moved.
344.—THE KENNEL PUZZLE.—solution
The first point is to make a choice of the most promising knight's string and then consider the question of reaching the arrangement in the fewest moves. I am strongly of opinion that the best string is the one represented in the following diagram, in which it will be seen that each successive number is a knight's move from the preceding one, and that five of the dogs (1, 5, 10, 15, and 20) never leave their original kennels.
This position may be arrived at in as few as forty-six moves, as follows: 16—21, 16—22, 16—23, 17—16, 12—17, 12—22, 12—21,7—12, 7—17, 7—22, 11—12, 11—17, 2—7, 2—12, 6—11, 8—7, 8—6, 13—8, 18—13, 11—18, 2—17, 18—12, 18—7, 18—2, 13—7, 3—8, 3—13, 4—3, 4—8, 9—4, 9—3, 14—9, 14—4, 19—14, 19—9, 3—14, 3—19, 6—12, 6—13, 6—14, 17—11, 12—16, 2—12, 7—17, 11—13, 16—18 = 46 moves. I am, of course, not able to say positively that a solution cannot be discovered in fewer moves, but I believe it will be found a very hard task to reduce the number.