Mathematical Recreations and Essays
(Leibnitz: letter to De Montmort, July 29, 1715.)
CHAPTER I.
SOME ARITHMETICAL QUESTIONS.
THE interest excited by statements of the relations between numbers of certain forms has been often remarked. The majority of works on mathematical recreations include several such problems, which are obvious to any one acquainted with the elements of algebra, but which to many who are ignorant of that subject possess the same kind of charm that some mathematicians find in the more recondite propositions of higher arithmetic. I shall devote the bulk of this chapter to these elementary problems, but I append a few remarks on one or two questions in the theory of numbers.
Before entering on the subject of the chapter, I may add that a large proportion of the elementary questions mentioned here and in the following two chapters are taken from one of two sources. The first of these is the classical Problèmes plaisans et délectables, by C.G. Bachet, sieur de Méziriac, of which the first edition was published in 1612 and the second in 1624: it is to the edition of 1624 that the references hereafter given apply. Several of Bachet’s problems are taken from the writings of Alcuin, Pacioli di Burgo, Tartaglia, or Cardan, and possibly some of them are of oriental origin, but I have made no attempt to add such references. The other source to which I alluded above is Ozanam’s Récréations mathématiques et physiques. The greater portion of the original edition, published in two volumes at Paris in 1694, was a compilation from the works of Bachet, Leurechon, Mydorge, van Etten, and Oughtred: this part is excellent, but the same cannot be said of the additions due to Ozanam. In the Biographie Universelle allusion is made to subsequent editions issued in 1720, 1735, 1741, 1778,
and 1790; doubtless these references are correct, but the following editions, all of which I have seen, are the only ones of which I have any knowledge. In 1696 an edition was issued at Amsterdam. In 1723—six years after the death of Ozanam—one was issued in three volumes, with a supplementary fourth volume, containing (among other things) an appendix on puzzles: I believe that it would be difficult to find in any of the books current in England on mathematical amusements as many as a dozen puzzles which are not contained in one of these four volumes. Fresh editions were issued in 1741, 1750 (the second volume of which bears the date 1749), 1770, and 1790. The edition of 1750 is said to have been corrected by Montucla on condition that his name should not be associated with it; but the edition of 1790 is the earliest one in which reference is made to these corrections, though the editor is referred to only as Monsieur M***. Montucla expunged most of what was actually incorrect in the older editions, and added several historical notes, but unfortunately his scruples prevented him from striking out the accounts of numerous trivial experiments and truisms which overload the work. An English translation of the original edition appeared in 1708, and I believe ran through four editions, the last of them being published in Dublin in 1790. Montucla’s revision of 1790 was translated by C. Hutton, and editions of this were issued in 1803, in 1814, and (in one volume) in 1840: my references are to the editions of 1803 and 1840.
I proceed now to enumerate some of the elementary questions connected with numbers which for nearly three centuries have formed a large part of most compilations of mathematical amusements. They are given here mainly for their historical—not for their arithmetical—interest; and perhaps a mathematician may well omit them, and pass at once to the latter part of this chapter.
These questions are of the nature of tricks or puzzles and I follow the usual course and present them in that form. I may note however that most of them are not worth proposing, even as tricks, unless either the modus operandi is disguised or the result arrived at is different from that expected; but, as I am not writing on conjuring, I refrain from alluding to the means of disguising the operations indicated, and give merely a bare enumeration of the steps essential to the success of the method used, though I may recall the fundamental rule that no trick, however good, will bear immediate repetition, and that, if it is
necessary to appear to repeat it, a different method of obtaining the result should be used.
To find a number selected by some one. There are innumerable ways of finding a number chosen by some one, provided the result of certain operations on it is known. I confine myself to methods typical of those commonly used. Any one acquainted with algebra will find no difficulty in modifying the rules here given or framing new ones of an analogous nature.
First Method. (i) Ask the person who has chosen the number to treble it. (ii) Enquire if the product is even or odd: if it is even, request him to take half of it; if it is odd, request him to add unity to it and then to take half of it. (iii) Tell him to multiply the result of the second step by 3. (iv) Ask how many integral times 9 divides into the latter product: suppose the answer to be . (v) Then the number thought of was or , according as the result of step (i) was even or odd.
The demonstration is obvious. Every even number is of the form , and the successive operations applied to this give (i) , which is even; (ii) ; (iii) ; (iv) ; (v) . Every odd number is of the form , and the successive operations applied to this give (i) , which is odd; (ii) ; (iii) ; (iv) a remainder; (v) . These results lead to the rule given above.
Second Method†. Ask the person who has chosen the number to perform in succession the following operations. (i) To multiply the number by 5. (ii) To add 6 to the product. (iii) To multiply the sum by 4. (iv) To add 9 to the product. (v) To multiply the sum by 5. Ask to be told the result of the last operation: if from this product 165 is subtracted, and then the remainder is divided by 100, the quotient will be the number thought of originally.
For let be the number selected. Then the successive operations applied to it give (i) ; (ii) ; (iii) ; (iv) ; (v) . Hence the rule.
Third Method‡. Request the person who has thought of the number to perform the following operations. (i) To multiply it by any number you like, say, . (ii) To divide the product by any number,
- Bachet, Problèmes plaisans, Lyons, 1624, problem 1, p. 53.
† A similar rule was given by Bachet, problem IV, p. 74.
‡ Bachet, problem V, p. 80.
say, b. (iii) To multiply the quotient by c. (iv) To divide this result by d. (v) To divide the final result by the number selected originally. (vi) To add to the result of operation (v) the number thought of at first. Ask for the sum so found: then, if ac/bd is subtracted from this sum, the remainder will be the number chosen originally.
For, if n was the number selected, the result of the first four operations is to form nac/bd; operation (v) gives ac/bd; and (vi) gives n + (ac/bd), which number is mentioned. But ac/bd is known; hence, subtracting it from the number mentioned, n is found. Of course a, b, c, d may have any numerical values it is liked to assign to them. For example, if a = 12, b = 4, c = 7, d = 3 it is sufficient to subtract 7 from the final result in order to obtain the number originally selected.
Fourth Method*. Ask some one to select a number less than 90. (i) Request him to multiply it by 10, and to add any number he pleases, a, which is less than 10. (ii) Request him to divide the result of step (i) by 3, and to mention the remainder, say, b. (iii) Request him to multiply the quotient obtained in step (ii) by 10, and to add any number he pleases, c, which is less than 10. (iv) Request him to divide the result of step (iii) by 3, and to mention the remainder, say d, and the third digit (from the right) of the quotient; suppose this digit is e. Then, if the numbers a, b, c, d, e are known, the original number can be at once determined. In fact, if the number is 9x + y, where x ≠ 9 and y ≠ 8, and if r is the remainder when a - b + 3(c - d) is divided by 9, we have x = e, y = 9 - r.
The demonstration is not difficult. For if the selected number is 9x + y, step (i) gives 90x + 10y + a; (ii) let y + a = 3n + b, then the quotient obtained in step (ii) is 30x + 3y + n; step (iii) gives 300x + 30y + 10n + c; (iv) let n + c = 3m + d, then the quotient obtained in step (iv) is 100x + 10y + 3n + m, which I will denote by Q. Now the third digit in Q must be x, because, since y ≠ 8 and a ≠ 9, we have n ≠ 5; and since n ≠ 5 and c ≠ 9, we have m ≠ 4; therefore 10y + 3n + m ≠ 99. Hence the third or hundreds digit in Q is x.
Again, from the relations y + a = 3n + b and n + c = 3m + d, we have 9m - y = a - b + 3(c - d): hence, if r is the remainder when a - b + 3(c - d) is divided by 9, we have y = 9 - r. [This is always true, if we make r positive; but if a - b + 3(c - d) is negative, it is simpler to take y as equal to its numerical value; or we may prevent the occurrence of
- Educational Times, London, May 1, 1895, vol. XLVIII, p. 234.
this case by assigning proper values to and .] Thus and are both known, and therefore the number selected, namely , is known.
Fifth Method. Ask any one to select a number less than 60. (i) Request him to divide it by 3 and mention the remainder; suppose it to be . (ii) Request him to divide it by 4, and mention the remainder; suppose it to be . (iii) Request him to divide it by 5, and mention the remainder; suppose it to be . Then the number selected is the remainder obtained by dividing by 60.
This method can be generalized and then will apply to any number chosen. Let be a series of numbers prime to one another, and let be their product. Let be any number less than , and let be the remainders when is divided by respectively. Find a number which is a multiple of the product and which exceeds by unity a multiple of . Find a number which is a multiple of and which exceeds by unity a multiple of ; and similarly find analogous numbers . Rules for the calculation of are given in the theory of numbers, but in general, if the numbers are small, the corresponding numbers, can be found by inspection. I proceed to show that is equal to the remainder when is divided by .