Chapter 12
The sailor depicted in the illustration stated that he had since his boyhood been engaged in trading with a small vessel among some twenty little islands in the Pacific. He supplied the rough chart of which I have given a copy, and explained that the lines from island to island represented the only routes that he ever adopted. He always started from island A at the beginning of the season, and then visited every island once, and once only, finishing up his tour at the starting-point A. But he always put off his visit to C as long as possible, for trade reasons that I need not enter into. The puzzle is to discover his exact route, and this can be done with certainty. Take your pencil and, starting at A, try to trace it out. If you write down the islands in the order in which you visit them--thus, for example, A, I, O, L, G, etc.--you can at once see if you have visited an island twice or omitted any. Of course, the crossings of the lines must be ignored--that is, you must continue your route direct, and you are not allowed to switch off at a crossing and proceed in another direction. There is no trick of this kind in the puzzle. The sailor knew the best route. Can you find it?
250.--THE GRAND TOUR.
One of the everyday puzzles of life is the working out of routes. If you are taking a holiday on your bicycle, or a motor tour, there always arises the question of how you are to make the best of your time and other resources. You have determined to get as far as some particular place, to include visits to such-and-such a town, to try to see something of special interest elsewhere, and perhaps to try to look up an old friend at a spot that will not take you much out of your way. Then you have to plan your route so as to avoid bad roads, uninteresting country, and, if possible, the necessity of a return by the same way that you went. With a map before you, the interesting puzzle is attacked and solved. I will present a little poser based on these lines.
I give a rough map of a country--it is not necessary to say what particular country--the circles representing towns and the dotted lines the railways connecting them. Now there lived in the town marked A a man who was born there, and during the whole of his life had never once left his native place. From his youth upwards he had been very industrious, sticking incessantly to his trade, and had no desire whatever to roam abroad. However, on attaining his fiftieth birthday he decided to see something of his country, and especially to pay a visit to a very old friend living at the town marked Z. What he proposed was this: that he would start from his home, enter every town once and only once, and finish his journey at Z. As he made up his mind to perform this grand tour by rail only, he found it rather a puzzle to work out his route, but he at length succeeded in doing so. How did he manage it? Do not forget that every town has to be visited once, and not more than once.
251.--WATER, GAS, AND ELECTRICITY.
There are some half-dozen puzzles, as old as the hills, that are perpetually cropping up, and there is hardly a month in the year that does not bring inquiries as to their solution. Occasionally one of these, that one had thought was an extinct volcano, bursts into eruption in a surprising manner. I have received an extraordinary number of letters respecting the ancient puzzle that I have called "Water, Gas, and Electricity." It is much older than electric lighting, or even gas, but the new dress brings it up to date. The puzzle is to lay on water, gas, and electricity, from W, G, and E, to each of the three houses, A, B, and C, without any pipe crossing another. Take your pencil and draw lines showing how this should be done. You will soon find yourself landed in difficulties.
252.--A PUZZLE FOR MOTORISTS.
Eight motorists drove to church one morning. Their respective houses and churches, together with the only roads available (the dotted lines), are shown. One went from his house A to his church A, another from his house B to his church B, another from C to C, and so on, but it was afterwards found that no driver ever crossed the track of another car. Take your pencil and try to trace out their various routes.
253.--A BANK HOLIDAY PUZZLE.
Two friends were spending their bank holiday on a cycling trip. Stopping for a rest at a village inn, they consulted a route map, which is represented in our illustration in an exceedingly simplified form, for the puzzle is interesting enough without all the original complexities. They started from the town in the top left-hand corner marked A. It will be seen that there are one hundred and twenty such towns, all connected by straight roads. Now they discovered that there are exactly 1,365 different routes by which they may reach their destination, always travelling either due south or due east. The puzzle is to discover which town is their destination.
Of course, if you find that there are more than 1,365 different routes to a town it cannot be the right one.
254.--THE MOTOR-CAR TOUR.
In the above diagram the circles represent towns and the lines good roads. In just how many different ways can a motorist, starting from London (marked with an L), make a tour of all these towns, visiting every town once, and only once, on a tour, and always coming back to London on the last ride? The exact reverse of any route is not counted as different.
255.--THE LEVEL PUZZLE.
This is a simple counting puzzle. In how many different ways can you spell out the word LEVEL by placing the point of your pencil on an L and then passing along the lines from letter to letter. You may go in any direction, backwards or forwards. Of course you are not allowed to miss letters--that is to say, if you come to a letter you must use it.
256.--THE DIAMOND PUZZLE.
IN how many different ways may the word DIAMOND be read in the arrangement shown? You may start wherever you like at a D and go up or down, backwards or forwards, in and out, in any direction you like, so long as you always pass from one letter to another that adjoins it. How many ways are there?
257.--THE DEIFIED PUZZLE.
In how many different ways may the word DEIFIED be read in this arrangement under the same conditions as in the last puzzle, with the addition that you can use any letters twice in the same reading?
258.--THE VOTERS' PUZZLE.
Here we have, perhaps, the most interesting form of the puzzle. In how many different ways can you read the political injunction, "RISE TO VOTE, SIR," under the same conditions as before? In this case every reading of the palindrome requires the use of the central V as the middle letter.
259.--HANNAH'S PUZZLE.
A man was in love with a young lady whose Christian name was Hannah. When he asked her to be his wife she wrote down the letters of her name in this manner:--
H H H H H H H A A A A H H A N N A H H A N N A H H A A A A H H H H H H H
and promised that she would be his if he could tell her correctly in how many different ways it was possible to spell out her name, always passing from one letter to another that was adjacent. Diagonal steps are here allowed. Whether she did this merely to tease him or to test his cleverness is not recorded, but it is satisfactory to know that he succeeded. Would you have been equally successful? Take your pencil and try. You may start from any of the H's and go backwards or forwards and in any direction, so long as all the letters in a spelling are adjoining one another. How many ways are there, no two exactly alike?
260.--THE HONEYCOMB PUZZLE.
Here is a little puzzle with the simplest possible conditions. Place the point of your pencil on a letter in one of the cells of the honeycomb, and trace out a very familiar proverb by passing always from a cell to one that is contiguous to it. If you take the right route you will have visited every cell once, and only once. The puzzle is much easier than it looks.
261.--THE MONK AND THE BRIDGES.
In this case I give a rough plan of a river with an island and five bridges. On one side of the river is a monastery, and on the other side is seen a monk in the foreground. Now, the monk has decided that he will cross every bridge once, and only once, on his return to the monastery. This is, of course, quite easy to do, but on the way he thought to himself, "I wonder how many different routes there are from which I might have selected." Could you have told him? That is the puzzle. Take your pencil and trace out a route that will take you once over all the five bridges. Then trace out a second route, then a third, and see if you can count all the variations. You will find that the difficulty is twofold: you have to avoid dropping routes on the one hand and counting the same routes more than once on the other.
COMBINATION AND GROUP PROBLEMS.
"A combination and a form indeed." _Hamlet_, iii. 4.
Various puzzles in this class might be termed problems in the "geometry of situation," but their solution really depends on the theory of combinations which, in its turn, is derived directly from the theory of permutations. It has seemed convenient to include here certain group puzzles and enumerations that might, perhaps, with equal reason have been placed elsewhere; but readers are again asked not to be too critical about the classification, which is very difficult and arbitrary. As I have included my problem of "The Round Table" (No. 273), perhaps a few remarks on another well-known problem of the same class, known by the French as La Problême des Ménages, may be interesting. If n married ladies are seated at a round table in any determined order, in how many different ways may their n husbands be placed so that every man is between two ladies but never next to his own wife?
This difficult problem was first solved by Laisant, and the method shown in the following table is due to Moreau:--
4 0 2 5 3 13 6 13 80 7 83 579 8 592 4738 9 4821 43387 10 43979 439792
The first column shows the number of married couples. The numbers in the second column are obtained in this way: 5 × 3 + 0 - 2 = 13; 6 × 13 + 3 + 2 = 83; 7 × 83 + 13 - 2 = 592; 8 × 592 + 83 + 2 = 4821; and so on. Find all the numbers, except 2, in the table, and the method will be evident. It will be noted that the 2 is subtracted when the first number (the number of couples) is odd, and added when that number is even. The numbers in the third column are obtained thus: 13 - 0 = 13; 83 - 3 = 80; 592 - 13 = 579; 4821 - 83 = 4738; and so on. The numbers in this last column give the required solutions. Thus, four husbands may be seated in two ways, five husbands may be placed in thirteen ways, and six husbands in eighty ways.
The following method, by Lucas, will show the remarkable way in which chessboard analysis may be applied to the solution of a circular problem of this kind. Divide a square into thirty-six cells, six by six, and strike out all the cells in the long diagonal from the bottom left-hand corner to the top right-hand corner, also the five cells in the diagonal next above it and the cell in the bottom right-hand corner. The answer for six couples will be the same as the number of ways in which you can place six rooks (not using the cancelled cells) so that no rook shall ever attack another rook. It will be found that the six rooks may be placed in eighty different ways, which agrees with the above table.
262.--THOSE FIFTEEN SHEEP.
A certain cyclopædia has the following curious problem, I am told: "Place fifteen sheep in four pens so that there shall be the same number of sheep in each pen." No answer whatever is vouchsafed, so I thought I would investigate the matter. I saw that in dealing with apples or bricks the thing would appear to be quite impossible, since four times any number must be an even number, while fifteen is an odd number. I thought, therefore, that there must be some quality peculiar to the sheep that was not generally known. So I decided to interview some farmers on the subject. The first one pointed out that if we put one pen inside another, like the rings of a target, and placed all sheep in the smallest pen, it would be all right. But I objected to this, because you admittedly place all the sheep in one pen, not in four pens. The second man said that if I placed four sheep in each of three pens and three sheep in the last pen (that is fifteen sheep in all), and one of the ewes in the last pen had a lamb during the night, there would be the same number in each pen in the morning. This also failed to satisfy me.
The third farmer said, "I've got four hurdle pens down in one of my fields, and a small flock of wethers, so if you will just step down with me I will show you how it is done." The illustration depicts my friend as he is about to demonstrate the matter to me. His lucid explanation was evidently that which was in the mind of the writer of the article in the cyclopædia. What was it? Can you place those fifteen sheep?
263.--KING ARTHUR'S KNIGHTS.
King Arthur sat at the Round Table on three successive evenings with his knights--Beleobus, Caradoc, Driam, Eric, Floll, and Galahad--but on no occasion did any person have as his neighbour one who had before sat next to him. On the first evening they sat in alphabetical order round the table. But afterwards King Arthur arranged the two next sittings so that he might have Beleobus as near to him as possible and Galahad as far away from him as could be managed. How did he seat the knights to the best advantage, remembering that rule that no knight may have the same neighbour twice?
264.--THE CITY LUNCHEONS.
Twelve men connected with a large firm in the City of London sit down to luncheon together every day in the same room. The tables are small ones that only accommodate two persons at the same time. Can you show how these twelve men may lunch together on eleven days in pairs, so that no two of them shall ever sit twice together? We will represent the men by the first twelve letters of the alphabet, and suppose the first day's pairing to be as follows--
(A B) (C D) (E F) (G H) (I J) (K L).
Then give any pairing you like for the next day, say--
(A C) (B D) (E G) (F H) (I K) (J L),
and so on, until you have completed your eleven lines, with no pair ever occurring twice. There are a good many different arrangements possible. Try to find one of them.
265.--A PUZZLE FOR CARD-PLAYERS.
Twelve members of a club arranged to play bridge together on eleven evenings, but no player was ever to have the same partner more than once, or the same opponent more than twice. Can you draw up a scheme showing how they may all sit down at three tables every evening? Call the twelve players by the first twelve letters of the alphabet and try to group them.
266.--A TENNIS TOURNAMENT.
Four married couples played a "mixed double" tennis tournament, a man and a lady always playing against a man and a lady. But no person ever played with or against any other person more than once. Can you show how they all could have played together in the two courts on three successive days? This is a little puzzle of a quite practical kind, and it is just perplexing enough to be interesting.
267.--THE WRONG HATS.
"One of the most perplexing things I have come across lately," said Mr. Wilson, "is this. Eight men had been dining not wisely but too well at a certain London restaurant. They were the last to leave, but not one man was in a condition to identify his own hat. Now, considering that they took their hats at random, what are the chances that every man took a hat that did not belong to him?"
"The first thing," said Mr. Waterson, "is to see in how many different ways the eight hats could be taken."
"That is quite easy," Mr. Stubbs explained. "Multiply together the numbers, 1, 2, 3, 4, 5, 6, 7, and 8. Let me see--half a minute--yes; there are 40,320 different ways."
"Now all you've got to do is to see in how many of these cases no man has his own hat," said Mr. Waterson.
"Thank you, I'm not taking any," said Mr. Packhurst. "I don't envy the man who attempts the task of writing out all those forty-thousand-odd cases and then picking out the ones he wants."
They all agreed that life is not long enough for that sort of amusement; and as nobody saw any other way of getting at the answer, the matter was postponed indefinitely. Can you solve the puzzle?
268.--THE PEAL OF BELLS.
A correspondent, who is apparently much interested in campanology, asks me how he is to construct what he calls a "true and correct" peal for four bells. He says that every possible permutation of the four bells must be rung once, and once only. He adds that no bell must move more than one place at a time, that no bell must make more than two successive strokes in either the first or the last place, and that the last change must be able to pass into the first. These fantastic conditions will be found to be observed in the little peal for three bells, as follows:--
1 2 3 2 1 3 2 3 1 3 2 1 3 1 2 1 3 2
How are we to give him a correct solution for his four bells?
269.--THREE MEN IN A BOAT.
A certain generous London manufacturer gives his workmen every year a week's holiday at the seaside at his own expense. One year fifteen of his men paid a visit to Herne Bay. On the morning of their departure from London they were addressed by their employer, who expressed the hope that they would have a very pleasant time.
"I have been given to understand," he added, "that some of you fellows are very fond of rowing, so I propose on this occasion to provide you with this recreation, and at the same time give you an amusing little puzzle to solve. During the seven days that you are at Herne Bay every one of you will go out every day at the same time for a row, but there must always be three men in a boat and no more. No two men may ever go out in a boat together more than once, and no man is allowed to go out twice in the same boat. If you can manage to do this, and use as few different boats as possible, you may charge the firm with the expense."
One of the men tells me that the experience he has gained in such matters soon enabled him to work out the answer to the entire satisfaction of themselves and their employer. But the amusing part of the thing is that they never really solved the little mystery. I find their method to have been quite incorrect, and I think it will amuse my readers to discover how the men should have been placed in the boats. As their names happen to have been Andrews, Baker, Carter, Danby, Edwards, Frith, Gay, Hart, Isaacs, Jackson, Kent, Lang, Mason, Napper, and Onslow, we can call them by their initials and write out the five groups for each of the seven days in the following simple way:
1 2 3 4 5 First Day: (ABC) (DEF) (GHI) (JKL) (MNO).
The men within each pair of brackets are here seen to be in the same boat, and therefore A can never go out with B or with C again, and C can never go out again with B. The same applies to the other four boats. The figures show the number on the boat, so that A, B, or C, for example, can never go out in boat No. 1 again.
270.--THE GLASS BALLS.
A number of clever marksmen were staying at a country house, and the host, to provide a little amusement, suspended strings of glass balls, as shown in the illustration, to be fired at. After they had all put their skill to a sufficient test, somebody asked the following question: "What is the total number of different ways in which these sixteen balls may be broken, if we must always break the lowest ball that remains on any string?" Thus, one way would be to break all the four balls on each string in succession, taking the strings from left to right. Another would be to break all the fourth balls on the four strings first, then break the three remaining on the first string, then take the balls on the three other strings alternately from right to left, and so on. There is such a vast number of different ways (since every little variation of order makes a different way) that one is apt to be at first impressed by the great difficulty of the problem. Yet it is really quite simple when once you have hit on the proper method of attacking it. How many different ways are there?
271.--FIFTEEN LETTER PUZZLE.
ALE FOE HOD BGN CAB HEN JOG KFM HAG GEM MOB BFH FAN KIN JEK DFL JAM HIM GCL LJH AID JIB FCJ NJD OAK FIG HCK MLN BED OIL MCD BLK ICE CON DGK
The above is the solution of a puzzle I gave in _Tit-bits_ in the summer of 1896. It was required to take the letters, A, B, C, D, E, F, G, H, I, J, K, L, M, N, and O, and with them form thirty-five groups of three letters so that the combinations should include the greatest number possible of common English words. No two letters may appear together in a group more than once. Thus, A and L having been together in ALE, must never be found together again; nor may A appear again in a group with E, nor L with E. These conditions will be found complied with in the above solution, and the number of words formed is twenty-one. Many persons have since tried hard to beat this number, but so far have not succeeded.
More than thirty-five combinations of the fifteen letters cannot be formed within the conditions. Theoretically, there cannot possibly be more than twenty-three words formed, because only this number of combinations is possible with a vowel or vowels in each. And as no English word can be formed from three of the given vowels (A, E, I, and O), we must reduce the number of possible words to twenty-two. This is correct theoretically, but practically that twenty-second word cannot be got in. If JEK, shown above, were a word it would be all right; but it is not, and no amount of juggling with the other letters has resulted in a better answer than the one shown. I should, say that proper nouns and abbreviations, such as Joe, Jim, Alf, Hal, Flo, Ike, etc., are disallowed.
Now, the present puzzle is a variation of the above. It is simply this: Instead of using the fifteen letters given, the reader is allowed to select any fifteen different letters of the alphabet that he may prefer. Then construct thirty-five groups in accordance with the conditions, and show as many good English words as possible.
272.--THE NINE SCHOOLBOYS.
This is a new and interesting companion puzzle to the "Fifteen Schoolgirls" (see solution of No. 269), and even in the simplest possible form in which I present it there are unquestionable difficulties. Nine schoolboys walk out in triplets on the six week days so that no boy ever walks _side by side_ with any other boy more than once. How would you arrange them?
If we represent them by the first nine letters of the alphabet, they might be grouped on the first day as follows:--
A B C D E F G H I
Then A can never walk again side by side with B, or B with C, or D with E, and so on. But A can, of course, walk side by side with C. It is here not a question of being together in the same triplet, but of walking side by side in a triplet. Under these conditions they can walk out on six days; under the "Schoolgirls" conditions they can only walk on four days.
273.--THE ROUND TABLE.
Seat the same n persons at a round table on
(n - 1)(n - 2) -------------- 2
occasions so that no person shall ever have the same two neighbours twice. This is, of course, equivalent to saying that every person must sit once, and once only, between every possible pair.