All public Sources
Public document

Mathematical Recreations and Essays

PDF document375 original pagesAdded to Pandi 6 November 2026
AskTalkView media
Reading progressPage 5 of 81

Let N=Aa+Bb+Cc+⋯N=Aa+Bb+Cc+\cdots, and let M(x)M(x) stand for a multiple of xx.

Now A=M(a′)+1A=M(a')+1, therefore Aa=M(a′)+aAa=M(a')+a. Hence, if the first term in NN, that is AaAa, is divided by a′a', the remainder is aa. Again, BB is a multiple of a′c′d′⋯a'c'd'\cdots. Therefore BbBb is exactly divisible by a′a'. Similarly Cc,Dd,…Cc,Dd,\ldots are each exactly divisible by a′a'. Thus every term in NN, except the first, is exactly divisible by a′a'. Hence, if NN is divided by a′a', the remainder is aa. But if nn is divided by a′a', the remainder is aa.

Therefore

N−n=M(a′).N-n=M(a').

Similarly

N−n=M(b′),N-n=M(b'), N−n=M(c′).N-n=M(c').

But a′,b′,c′,…a',b',c',\ldots are prime to one another.

∴N−n=M(a′b′c′⋯ )=M(p),\therefore N-n=M(a'b'c'\cdots)=M(p),

that is,

N=M(p)+n.N=M(p)+n.

Bachet, problem VI, p. 84: Bachet added, on p. 87, a note on the previous history of the problem.

Now nn is less than pp, hence if NN is divided by pp, the remainder is nn.

The rule given by Bachet corresponds to the case of a′=3a'=3, b′=4b'=4, c′=5c'=5, p=60p=60, A=40A=40, B=45B=45, C=36C=36. If the number chosen is less than 420, we may take a′=3a'=3, b′=4b'=4, c′=5c'=5, d′=7d'=7, p=420p=420, A=280A=280, B=105B=105, C=336C=336, D=120D=120.

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 nn. Ask him (i) to multiply it by any number you please (say) aa; (ii) then to add (say) bb; (iii) then to divide the sum by (say) cc. (iv) Next, tell him to take a/ca/c 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 (na+b)/c(na+b)/c, and the result of operation (iv) is na/cna/c: the difference between these is b/cb/c, and therefore is known to you. For example, if a=6a=6, b=12b=12, c=4c=4, and a/c=112a/c=1\frac{1}{2}, then the final result is 3.

Second Example. Ask AA to take any number of counters that he pleases: suppose that he takes nn counters. (i) Ask some one else, say BB, to take pp times as many, where pp is any number you like to choose. (ii) Request AA to give qq of his counters to BB, where qq is any number you like to select. (iii) Next, ask BB to transfer to AA a number of counters equal to pp times as many counters as AA has in his possession. Then there will remain in BB's hands q(p+1)q(p+1) 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 BB has pn+qpn+q counters, and AA has n−qn-q counters. The result of (iii) is that BB transfers p(n−q)p(n-q) counters to AA: hence he has left in his possession (pn+q)−p(n−q)(pn+q)-p(n-q) counters, that is, he has q(p+1)q(p+1).

For example, if originally AA took any number of counters, then (if you chose pp equal to 2), first you would ask BB to take twice as many counters as AA had done; next (if you chose qq equal to 3) you would ask

A to give 3 counters to BB; and then you would ask BB to give to AA a number of counters equal to twice the number then in AA's possession; after this was done you would know that BB had 3(2+1)3(2+1), that is, 9 left.

This trick (as also some of the following problems) may be performed equally well with one person, in which case AA may stand for his right hand and BB 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)237100a+10b+c100a + 10b + c
(ii)732100c+10b+a100c + 10b + a
(iii)495100(a−c−1)+90+(10+c−a)100(a - c - 1) + 90 + (10 + c - a)
(iv)594100(10+c−a)+90+(a−c−1)100(10 + c - a) + 90 + (a - c - 1)
(v)1089900+180+9900 + 180 + 9

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).10175
(ii).51710
(iii).4197
(iv).7194
(v).121811

The following work explains the rule, and shows that the final result is independent of the sum written down initially.

£.s.d.
(i).abc
(ii).cba
(iii).a−c−1a - c - 119c−a+12c - a + 12
(iv).c−a+12c - a + 1219a−c−1a - c - 1
(v).113811

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 AA is asked to select one of them, and that another person BB takes the other. It is desired to know whether AA selected the even or the odd number. Ask AA to multiply his number by 2 (or any even number) and BB 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 AA selected the odd number, but if it is odd, then originally AA 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 mm and nn, and suppose that nn is exactly divisible by pp. Ask AA to select one of these numbers, and BB to take the other. Choose a number prime to pp, say qq. Ask AA to multiply his number by qq, and BB to multiply his number by pp. Request them to add the products together and state the sum. Then AA originally selected mm or nn, according as this result is not or is divisible by pp. For example, m=7m = 7, n=15n = 15, p=3p = 3, q=2q = 2.

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 (2×103)+(0×102)+(1×10)+7(2 \times 10^3) + (0 \times 10^2) + (1 \times 10) + 7; that is, the 2 represents 2 thousands, i.e. the product of 2 and 10310^3, the 0 represents 0 hundreds, i.e. the product of 0 and 10210^2; 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 aa and bb. Each of these is less than ten—dice or dominoes ensuring this. The successive operations give (i) 5a5a; (ii) 5a+75a+7; (iii) 10a+1410a+14; (iv) 10a+14+b10a+14+b. 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, aa, bb, cc, 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, aa, and multiply it by 2. (ii) Add 3 to the product; the result is 2a+32a + 3. (iii) Multiply this by 5, and add 7 to the product; the result is 10a+2210a + 22. (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 100a+10b+c+235100a + 10b + c + 235. 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 aa and bb be the tens and units digits of the birth-year. The successive operations give (i) 5a5a; (ii) 5a+25a + 2; (iii) 10a+410a + 4 (iv) 10a+4+b10a + 4 + b; (v) 106−(10a+b)106 - (10a + b), 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.

Continue reading
Page 5 of 81