Mathematical Recreations and Essays
Let , and let stand for a multiple of .
Now , therefore . Hence, if the first term in , that is , is divided by , the remainder is . Again, is a multiple of . Therefore is exactly divisible by . Similarly are each exactly divisible by . Thus every term in , except the first, is exactly divisible by . Hence, if is divided by , the remainder is . But if is divided by , the remainder is .
Therefore
Similarly
But are prime to one another.
that is,
Bachet, problem VI, p. 84: Bachet added, on p. 87, a note on the previous history of the problem.
Now is less than , hence if is divided by , the remainder is .
The rule given by Bachet corresponds to the case of , , , , , , . If the number chosen is less than 420, we may take , , , , , , , , .
To find the result of a series of operations performed on any number (unknown to the questioner) without asking any questions. All rules for solving such problems ultimately depend on so arranging the operations that the number disappears from the final result. Four examples will suffice.
First Example. Request some one to think of a number. Suppose it to be . Ask him (i) to multiply it by any number you please (say) ; (ii) then to add (say) ; (iii) then to divide the sum by (say) . (iv) Next, tell him to take of the number originally chosen; and (v) to subtract this from the result of the third operation. The result of the first three operations is , and the result of operation (iv) is : the difference between these is , and therefore is known to you. For example, if , , , and , then the final result is 3.
Second Example. Ask to take any number of counters that he pleases: suppose that he takes counters. (i) Ask some one else, say , to take times as many, where is any number you like to choose. (ii) Request to give of his counters to , where is any number you like to select. (iii) Next, ask to transfer to a number of counters equal to times as many counters as has in his possession. Then there will remain in 's hands counters: this number is known to you; and the trick can be finished either by mentioning it or in any other way you like.
The reason is as follows. The result of operation (ii) is that has counters, and has counters. The result of (iii) is that transfers counters to : hence he has left in his possession counters, that is, he has .
For example, if originally took any number of counters, then (if you chose equal to 2), first you would ask to take twice as many counters as had done; next (if you chose equal to 3) you would ask
A to give 3 counters to ; and then you would ask to give to a number of counters equal to twice the number then in 's possession; after this was done you would know that had , that is, 9 left.
This trick (as also some of the following problems) may be performed equally well with one person, in which case may stand for his right hand and for his left hand.
Third Example. Ask some one to perform in succession the following operations. (i) Take any number of three digits. (ii) Form a new number by reversing the order of the digits. (iii) Find the difference of these two numbers. (iv) Form another number by reversing the order of the digits in this difference. (v) Add together the results of (iii) and (iv). Then the sum obtained as the result of this last operation will be 1089.
An illustration and the explanation of the rule are given below.
| (i) | 237 | |
| (ii) | 732 | |
| (iii) | 495 | |
| (iv) | 594 | |
| (v) | 1089 |
Fourth Example. The following trick depends on the same principle. Ask some one to perform in succession the following operations. (i) To write down any sum of money less than £12; the number of pounds not being the same as the number of pence. (ii) To reverse this sum, that is, to write down a sum of money obtained from it by interchanging the numbers of pounds and pence. (iii) To find the difference between the results of (i) and (ii). (iv) To reverse this difference. (v) To add together the results of (iii) and (iv). Then this sum will be £12. 18s. 11d.
- Educational Times Reprints, 1890, vol. LIII, p. 78.
For instance, take the sum £10. 17s. 5d.; we have
| £. | s. | d. | ||
|---|---|---|---|---|
| (i) | . | 10 | 17 | 5 |
| (ii) | . | 5 | 17 | 10 |
| (iii) | . | 4 | 19 | 7 |
| (iv) | . | 7 | 19 | 4 |
| (v) | . | 12 | 18 | 11 |
The following work explains the rule, and shows that the final result is independent of the sum written down initially.
| £. | s. | d. | ||
|---|---|---|---|---|
| (i) | . | a | b | c |
| (ii) | . | c | b | a |
| (iii) | . | 19 | ||
| (iv) | . | 19 | ||
| (v) | . | 11 | 38 | 11 |
The rule can be generalized to cover any system of monetary units.
PROBLEMS INVOLVING TWO NUMBERS. I proceed next to give a couple of examples of a class of problems which involve two numbers.
First Example. Suppose that there are two numbers, one even and the other odd, and that a person is asked to select one of them, and that another person takes the other. It is desired to know whether selected the even or the odd number. Ask to multiply his number by 2 (or any even number) and to multiply his by 3 (or any odd number). Request them to add the two products together and tell you the sum. If it is even, then originally selected the odd number, but if it is odd, then originally selected the even number. The reason is obvious.
Second Example†. The above rule was extended by Bachet to any two numbers, provided they were prime to one another and one of them
- Bachet, problem IX, p. 107. † Bachet, problem XI, p. 113.
was not itself a prime. Let the numbers be and , and suppose that is exactly divisible by . Ask to select one of these numbers, and to take the other. Choose a number prime to , say . Ask to multiply his number by , and to multiply his number by . Request them to add the products together and state the sum. Then originally selected or , according as this result is not or is divisible by . For example, , , , .
PROBLEMS DEPENDING ON THE SCALE OF NOTATION. Many of the rules for finding two or more numbers depend on the fact that in arithmetic an integral number is denoted by a succession of digits, where each digit represents the product of that digit and a power of ten, and the number is equal to the sum of these products. For example, 2017 signifies ; that is, the 2 represents 2 thousands, i.e. the product of 2 and , the 0 represents 0 hundreds, i.e. the product of 0 and ; the 1 represents 1 ten, i.e. the product of 1 and 10, and the 7 represents 7 units. Thus every digit has a local value.
The application to tricks connected with numbers will be understood readily from three illustrative examples.
First Example. A common conjuring trick is to ask a boy among the audience to throw two dice, or to select at random from a box a domino on each half of which is a number. The boy is then told to recollect the two numbers thus obtained, to choose either of them, to multiply it by 5, to add 7 to the result, to double this result, and lastly to add to this the other number. From the number thus obtained, the conjurer subtracts 14, and obtains a number of two digits which are the two numbers chosen originally.
For suppose that the boy selected the numbers and . Each of these is less than ten—dice or dominoes ensuring this. The successive operations give (i) ; (ii) ; (iii) ; (iv) . Hence, if 14 is subtracted from the final result, there will be left a number of two digits, and these digits are the numbers selected originally. An analogous trick might be performed in other scales of notation if it was thought necessary to disguise the process further.
* Some similar questions were given by Bachet in problem XII, p. 117; by Oughtred in his Mathematicall Recreations (translated from or founded on van Etten’s work of 1633), London, 1653, problem XXXIV; and by Ozanam, part I, chapter X.
Second Example. Similarly, if three numbers, say, , , , are chosen, then, if each of them is less than ten, they can be found by the following rule. (i) Take one of the numbers, say, , and multiply it by 2. (ii) Add 3 to the product; the result is . (iii) Multiply this by 5, and add 7 to the product; the result is . (iv) To this sum add the second number. (v) Multiply the result by 2. (vi) Add 3 to the product. (vii) Multiply by 5, and add the third number to the product. The result is . Hence, if the final result is known, it is sufficient to subtract 235 from it, and the remainder will be a number of three digits. These digits are the numbers chosen originally.
I have seen a similar rule applied to determine the birthday and age of some one in the audience. The result is a number of six digits, of which the first two digits give the day of the month, the middle two digits the number of the month, and the last two digits the present age.
Third Example†. The following rule for finding a man’s age is of the same kind. Take the tens digit of the year of birth; (i) multiply it by 5; (ii) to the product add 2; (iii) multiply the result by 2; (iv) to this product add the units digit of the birth-year; (v) subtract the sum from 110. The result is the man’s age in 1906.
The algebraic proof of the rule is obvious. Let and be the tens and units digits of the birth-year. The successive operations give (i) ; (ii) ; (iii) (iv) ; (v) , which is his age in 1906. The rule can be easily adapted to give the age in any specified year.
Other Problems with Numbers in the Denary Scale. I may mention here two or three other slight problems dependent on the common scale of notation, which, as far as I am aware, are unknown to most compilers of books of puzzles.