wunder · Library

Part 76

Amusements in Mathematics · Henry Ernest Dudeney — chapter 76 of 129 · ~2,106 words · public domain

Read in the Wunder reader — free

132.--THE NINE TREASURE BOXES.

Here is the answer that fulfils the conditions:--

A = 4 B = 3,364 C = 6,724 D = 2,116 E = 5,476 F = 8,836 G = 9,409 H = 12,769 I = 16,129

Each of these is a square number, the roots, taken in alphabetical order, being 2, 58, 82, 46, 74, 94, 97, 113, and 127, while the required difference between A and B, B and C, D and E. etc., is in every case 3,360.

133.--THE FIVE BRIGANDS.

The sum of 200 doubloons might have been held by the five brigands in any one of 6,627 different ways. Alfonso may have held any number from 1 to 11. If he held 1 doubloon, there are 1,005 different ways of distributing the remainder; if he held 2, there are 985 ways; if 3, there are 977 ways; if 4, there are 903 ways; if 5 doubloons, 832 ways; if 6 doubloons, 704 ways; if 7 doubloons, 570 ways; if 8 doubloons, 388 ways; if 9 doubloons, 200 ways; if 10 doubloons, 60 ways; and if Alfonso held 11 doubloons, the remainder could be distributed in 3 different ways. More than 11 doubloons he could not possibly have had. It will scarcely be expected that I shall give all these 6,627 ways at length. What I propose to do is to enable the reader, if he should feel so disposed, to write out all the answers where Alfonso has one and the same amount. Let us take the cases where Alfonso has 6 doubloons, and see how we may obtain all the 704 different ways indicated above. Here are two tables that will serve as keys to all these answers:--

Table I. Table II. A = 6. A = 6. B = n. B = n. C = (63 - 5n) + m. C = 1 + m. D = (128 + 4n) - 4m. D = (376 - 16n) - 4m. E = 3 + 3m. E = (15n - 183) + 3m.

In the first table we may substitute for n any whole number from 1 to 12 inclusive, and m may be nought or any whole number from 1 to (31 + n) inclusive. In the second table n may have the value of any whole number from 13 to 23 inclusive, and m may be nought or any whole number from 1 to (93 - 4n) inclusive. The first table thus gives (32 + n) answers for every value of n; and the second table gives (94 - 4n) answers for every value of n. The former, therefore, produces 462 and the latter 242 answers, which together make 704, as already stated.

Let us take Table I., and say n = 5 and m = 2; also in Table II. take n = 13 and m = 0. Then we at once get these two answers:--

A = 6 A = 6 B = 5 B = 13 C = 40 C = 1 D = 140 D = 168 E = 9 E = 12 --- --- 200 doubloons 200 doubloons.

These will be found to work correctly. All the rest of the 704 answers, where Alfonso always holds six doubloons, may be obtained in this way from the two tables by substituting the different numbers for the letters m and n.

Put in another way, for every holding of Alfonso the number of answers is the sum of two arithmetical progressions, the common difference in one case being 1 and in the other -4. Thus in the case where Alfonso holds 6 doubloons one progression is 33 + 34 + 35 + 36 + ... + 43 + 44, and the other 42 + 38 + 34 + 30 + ... + 6 + 2. The sum of the first series is 462, and of the second 242--results which again agree with the figures already given. The problem may be said to consist in finding the first and last terms of these progressions. I should remark that where Alfonso holds 9, 10, or 11 there is only one progression, of the second form.

134.--THE BANKER'S PUZZLE.

In order that a number of sixpences may not be divisible into a number of equal piles, it is necessary that the number should be a prime. If the banker can bring about a prime number, he will win; and I will show how he can always do this, whatever the customer may put in the box, and that therefore the banker will win to a certainty. The banker must first deposit forty sixpences, and then, no matter how many the customer may add, he will desire the latter to transfer from the counter the square of the number next below what the customer put in. Thus, banker puts 40, customer, we will say, adds 6, then transfers from the counter 25 (the square of 5), which leaves 71 in all, a prime number. Try again. Banker puts 40, customer adds 12, then transfers 121 (the square of 11), as desired, which leaves 173, a prime number. The key to the puzzle is the curious fact that any number up to 39, if added to its square and the sum increased by 41, makes a prime number. This was first discovered by Euler, the great mathematician. It has been suggested that the banker might desire the customer to transfer sufficient to raise the contents of the box to a given number; but this would not only make the thing an absurdity, but breaks the rule that neither knows what the other puts in.

135.--THE STONEMASON'S PROBLEM.

The puzzle amounts to this. Find the smallest square number that may be expressed as the sum of more than three consecutive cubes, the cube 1 being barred. As more than three heaps were to be supplied, this condition shuts out the otherwise smallest answer, 23 cubed + 24 cubed + 25 cubed = 204 squared. But it admits the answer, 25 cubed + 26 cubed + 27 cubed + 28 cubed + 29 cubed = 315 squared. The correct answer, however, requires more heaps, but a smaller aggregate number of blocks. Here it is: 14 cubed + 15 cubed + ... up to 25 cubed inclusive, or twelve heaps in all, which, added together, make 97,344 blocks of stone that may be laid out to form a square 312 x 312. I will just remark that one key to the solution lies in what are called triangular numbers. (See pp. 13, 25, and 166.)

136.--THE SULTAN'S ARMY.

The smallest primes of the form 4n + 1 are 5, 13, 17, 29, and 37, and the smallest of the form 4n - 1 are 3, 7, 11, 19, and 23. Now, primes of the first form can always be expressed as the sum of two squares, and in only one way. Thus, 5 = 4 + 1; 13 = 9 + 4; 17 = 16 + 1; 29 = 25 + 4; 37 = 36 + 1. But primes of the second form can never be expressed as the sum of two squares in any way whatever.

In order that a number may be expressed as the sum of two squares in several different ways, it is necessary that it shall be a composite number containing a certain number of primes of our first form. Thus, 5 or 13 alone can only be so expressed in one way; but 65, (5 x 13), can be expressed in two ways, 1,105, (5 x 13 x 17), in four ways, 32,045, (5 x 13 x 17 x 29), in eight ways. We thus get double as many ways for every new factor of this form that we introduce. Note, however, that I say new factor, for the repetition of factors is subject to another law. We cannot express 25, (5 x 5), in two ways, but only in one; yet 125, (5 x 5 x 5), can be given in two ways, and so can 625, (5 x 5 x 5 x 5); while if we take in yet another 5 we can express the number as the sum of two squares in three different ways.

If a prime of the second form gets into your composite number, then that number cannot be the sum of two squares. Thus 15, (3 x 5), will not work, nor will 135, (3 x 3 x 3 x 5); but if we take in an even number of 3's it will work, because these 3's will themselves form a square number, but you will only get one solution. Thus, 45, (3 x 3 x 5, or 9 x 5) = 36 + 9. Similarly, the factor 2 may always occur, or any power of 2, such as 4, 8, 16, 32; but its introduction or omission will never affect the number of your solutions, except in such a case as 50, where it doubles a square and therefore gives you the two answers, 49 + 1 and 25 + 25.

Now, directly a number is decomposed into its prime factors, it is possible to tell at a glance whether or not it can be split into two squares; and if it can be, the process of discovery in how many ways is so simple that it can be done in the head without any effort. The number I gave was 130. I at once saw that this was 2 x 5 x 13, and consequently that, as 65 can be expressed in two ways (64 + 1 and 49 + 16), 130 can also be expressed in two ways, the factor 2 not affecting the question.

The smallest number that can be expressed as the sum of two squares in twelve different ways is 160,225, and this is therefore the smallest army that would answer the Sultan's purpose. The number is composed of the factors 5 x 5 x 13 x 17 x 29, each of which is of the required form. If they were all different factors, there would be sixteen ways; but as one of the factors is repeated, there are just twelve ways. Here are the sides of the twelve pairs of squares: (400 and 15), (399 and 32), (393 and 76), (392 and 81), (384 and 113), (375 and 140), (360 and 175), (356 and 183), (337 and 216), (329 and 228), (311 and 252), (265 and 300). Square the two numbers in each pair, add them together, and their sum will in every case be 160,225.

137.--A STUDY IN THRIFT.

Mrs. Sandy McAllister will have to save a tremendous sum out of her housekeeping allowance if she is to win that sixth present that her canny husband promised her. And the allowance must be a very liberal one if it is to admit of such savings. The problem required that we should find five numbers higher than 36 the units of which may be displayed so as to form a square, a triangle, two triangles, and three triangles, using the complete number in every one of the four cases.

Every triangular number is such that if we multiply it by 8 and add 1 the result is an odd square number. For example, multiply 1, 3, 6, 10, 15 respectively by 8 and add 1, and we get 9, 25, 49, 81, 121, which are the squares of the odd numbers 3, 5, 7, 9, 11. Therefore in every case where 8x squared + 1 = a square number, x squared is also a triangular. This point is dealt with in our puzzle, "The Battle of Hastings." I will now merely show again how, when the first solution is found, the others may be discovered without any difficulty. First of all, here are the figures:--

8 x 1 squared + 1 = 3 squared 8 x 6 squared + 1 = 17 squared 8 x 35 squared + 1 = 99 squared 8 x 204 squared + 1 = 577 squared 8 x 1189 squared + 1 = 3363 squared 8 x 6930 squared + 1 = 19601 squared 8 x 40391 squared + 1 = 114243 squared

The successive pairs of numbers are found in this way:--

(1 x 3) + (3 x 1) = 6 (8 x 1) + (3 x 3) = 17 (1 x 17) + (3 x 6) = 35 (8 x 6) + (3 x 17) = 99 (1 x 99) + (3 x 35) = 204 (8 x 35) + (3 x 99) = 577

← Previous chapterAll chaptersNext chapter →

Amusements in Mathematics · The Wunder Library — complete classics, free to read, with narration.

© 2026 Wunder Learning LLC · Terms & Privacy