Amusements in Mathematics
From this book
Here are the moves for getting the men into one or other of the above two positions. The numbers are those of the men in the order in which they move into the cell that is for the time being vacant. The pair is shown in brackets:—
Place 5 on 1. Then, 6, 9, 8, 6, 4, (6), 2, 4, 9, 3, 4, 9, (6), 7, 6, 1.
Place 5 on 9. Then, 4, 1, 2, 4, 6, (14), 8, 6, 1, 7, 6, 1, (14), 3, 4, 9.
Place 5 on 3. Then, 6, (8), 2, 6, 4, 7, 8, 4, 7, 1, 6, 7, (8), 9, 4, 3.
Place 5 on 7. Then, 4, (12), 8, 4, 6, 3, 2, 6, 3, 9, 4, 3, (12), 1, 6, 7.
The first and second solutions produce Diagram A; the second and third produce Diagram B. There are only sixteen moves in every case. Having found the fewest moves, we had to consider how we were to make the burdened man do as little work as possible. It will at once be seen that as the pair have to go into the centre before separating they must take at fewest two moves. The labour of the burdened man can only be reduced by adopting the other method of solution, which, however, forces us to take another move.
403.—THE SPANISH DUNGEON.—solution
This can best be solved by working backwards—that is to say, you must first catch your square, and then work back to the original position. We must first construct those squares which are found to require the least amount of readjustment of the numbers. Many of these we know cannot possibly be reached. When we have before us the most favourable possible arrangements, it then becomes a question of careful analysis to discover which position can be reached in the fewest moves. I am afraid, however, it is only after considerable study and experience that the solver is able to get such a grasp of the various "areas of disturbance" and methods of circulation that his judgment is of much value to him.
The second diagram is a most favourable magic square position. It will be seen that prisoners 4, 8, 13, and 14 are left in their original cells. This position may be reached in as few as thirty-seven moves. Here are the moves: 15, 14, 10, 6, 7, 3, 2, 7, 6, 11, 3, 2, 7, 6, 11, 10, 14, 3, 2, 11, 10, 9, 5, 1, 6, 10, 9, 5, 1, 6, 10, 9, 5, 2, 12, 15, 3. This short solution will probably surprise many readers who may not find a way under from sixty to a hundred moves. The clever prisoner was No. 6, who in the original illustration will be seen with his arms extended calling out the moves. He and No. 10 did most of the work, each changing his cell five times. No. 12, the man with the crooked leg, was lame, and therefore fortunately had only to pass from his cell into the next one when his time came round.
404.—THE SIBERIAN DUNGEONS.—solution
In attempting to solve this puzzle it is clearly necessary to seek such magic squares as seem the most favourable for our purpose, and then carefully examine and try them for "fewest moves." Of course it at once occurs to us that if we can adopt a square in which a certain number of men need not leave their original cells, we may save moves on the one hand, but we may obstruct our movements on the other. For example, a magic square may be formed with the 6, 7, 13, and 16 unmoved; but in such case it is obvious that a solution is impossible, since cells 14 and 15 can neither be left nor entered without breaking the condition of no two men ever being in the same cell together.
The following solution in fourteen moves was found by Mr. G. Wotherspoon: 8-17, 16-21, 6-16, 14-8, 5-18, 4-14, 3-24, 11-20, 10-19, 2-23, 13-22, 12-6, 1-5, 9-13. As this solution is in what I consider the theoretical minimum number of moves, I am confident that it cannot be improved upon, and on this point Mr. Wotherspoon is of the same opinion.
405.—CARD MAGIC SQUARES.—solution
Arrange the cards as follows for the three new squares:—
| 3 | 2 | 4 |
| 4 | 3 | 2 |
| 2 | 4 | 3 |
| 6 | 5 | 7 |
| 7 | 6 | 5 |
| 5 | 7 | 6 |
| 9 | 8 | 10 |
| 10 | 9 | 8 |
| 8 | 10 | 9 |
Three aces and one ten are not used. The summations of the four squares are thus: 9, 15, 18, and 27—all different, as required.
406.—THE EIGHTEEN DOMINOES.—solution
The illustration explains itself. It will be found that the pips in every column, row, and long diagonal add up 18, as required.
407.—TWO NEW MAGIC SQUARES.—solution
Here are two solutions that fulfil the conditions:—
The first, by subtracting, has a constant 8, and the associated pairs all have a difference of 4. The second square, by dividing, has a constant 9, and all the associated pairs produce 3 by division. These are two remarkable and instructive squares.
408.—MAGIC SQUARES OF TWO DEGREES.—solution
The following is the square that I constructed. As it stands the constant is 260. If for every number you substitute, in its allotted place, its square, then the constant will be 11,180. Readers can write out for themselves the second degree square.
The main key to the solution is the pretty law that if eight numbers sum to 260 and their squares to 11,180, then the same will happen in the case of the eight numbers that are complementary to 65. Thus 1 + 18 + 23 + 26 + 31 + 48 + 56 + 57 = 260, and the sum of their squares is 11,180. Therefore 64 + 47 + 42 + 39 + 34 + 17 + 9 + 8 (obtained by subtracting each of the above numbers from 65) will sum to 260 and their squares to 11,180. Note that in every one of the sixteen smaller squares the two diagonals sum to 65. There are four columns and four rows with their complementary columns and rows. Let us pick out the numbers found in the 2nd, 1st, 4th, and 3rd rows and arrange them thus :—
| 1 | 8 | 28 | 29 | 42 | 47 | 51 | 54 |
| 2 | 7 | 27 | 30 | 41 | 48 | 52 | 53 |
| 3 | 6 | 26 | 31 | 44 | 45 | 49 | 56 |
| 4 | 5 | 25 | 32 | 43 | 46 | 50 | 55 |
Here each column contains four consecutive numbers cyclically arranged, four running in one direction and four in the other. The numbers in the 2nd, 5th, 3rd, and 8th columns of the square may be similarly grouped. The great difficulty lies in discovering the conditions governing these groups of numbers, the pairing of the complementaries in the squares of four and the formation of the diagonals. But when a correct solution is shown, as above, it discloses all the more important keys to the mystery. I am inclined to think this square of two degrees the most elegant thing that exists in magics. I believe such a magic square cannot be constructed in the case of any order lower than 8.
409.—THE BASKETS OF PLUMS.—solution
As the merchant told his man to distribute the contents of one of the baskets of plums "among some children," it would not be permissible to give the complete basketful to one child; and as it was also directed that the man was to give "plums to every child, so that each should receive an equal number," it would also not be allowed to select just as many children as there were plums in a basket and give each child a single plum. Consequently, if the number of plums in every basket was a prime number, then the man would be correct in saying that the proposed distribution was quite impossible. Our puzzle, therefore, resolves itself into forming a magic square with nine different prime numbers.
In Diagram A we have a magic square in prime numbers, and it is the one giving the smallest constant sum that is possible. As to the little trap I mentioned, it is clear that Diagram A is barred out by the words "every basket contained plums," for one plum is not plums. And as we were referred to the baskets, "as shown in the illustration," it is perfectly evident, without actually attempting to count the plums, that there are at any rate more than 7 plums in every basket. Therefore C is also, strictly speaking, barred. Numbers over 20 and under, say, 250 would certainly come well within the range of possibility, and a large number of arrangements would come within these limits. Diagram B is one of them. Of course we can allow for the false bottoms that are so frequently used in the baskets of fruitsellers to make the basket appear to contain more fruit than it really does.
Several correspondents assumed (on what grounds I cannot think) that in the case of this problem the numbers cannot be in consecutive arithmetical progression, so I give Diagram D to show that they were mistaken. The numbers are 199, 409, 619, 829, 1,039, 1,249, 1,459, 1,669, and 1,879—all primes with a common difference of 210.
410.—THE MANDARIN'S "T" PUZZLE.—solution
There are many different ways of arranging the numbers, and either the 2 or the 3 may be omitted from the "T" enclosure. The arrangement that I give is a "nasik" square. Out of the total of 28,800 nasik squares of the fifth order this is the only one (with its one reflection) that fulfils the "T" condition. This puzzle was suggested to me by Dr. C. Planck.
411.—A MAGIC SQUARE OF COMPOSITES.—solution
The problem really amounts to finding the smallest prime such that the next higher prime shall exceed it by 10 at least. If we write out a little list of primes, we shall not need to exceed 150 to discover what we require, for after 113 the next prime is 127. We can then form the square in the diagram, where every number is composite. This is the solution in the smallest numbers. We thus see that the answer is arrived at quite easily, in a square of the third order, by trial. But I propose to show how we may get an answer (not, it is true, the one in smallest numbers) without any tables or trials, but in a very direct and rapid manner.
First write down any consecutive numbers, the smallest being greater than 1—say, 2, 3, 4, 5, 6, 7, 8, 9, 10. The only factors in these numbers are 2, 3, 5, and 7. We therefore mul tiply these four numbers together and add the product, 210, to each of the nine numbers. The result is the nine consecutive composite numbers, 212 to 220 inclusive, with which we can form the required square. Every number will necessarily be divisible by its difference from 210. It will be very obvious that by this method we may find as many consecutive composites as ever we please. Suppose, for example, we wish to form a magic square of sixteen such numbers; then the numbers 2 to 17 contain the factors 2, 3, 5, 7, 11, 13, and 17, which, multiplied together, make 510510 to be added to produce the sixteen numbers 510512 to 510527 inclusive, all of which are composite as before.