Mathematical Recreations and Essays
Voting Problems. Here is a simple example on combinations dealing with the cumulative vote as affecting the representation of a minority. If there are electors each having votes of which not more than may be given to one candidate, and men are to be elected, then the least number of supporters who can secure the election of a candidate must exceed .
Exploration Problems. Another common question is concerned with the maximum distance into a desert which could be reached from a frontier settlement by the aid of a party of explorers, each capable of carrying provisions that would last one man for days. The answer is that the man who reaches the greatest distance will occupy days before he returns to his starting point. If in the course of their journey they may make depôts, the longest possible journey will occupy days. Further extensions by the use of horses and cycles will suggest themselves.
Here I conclude my account of such of these easy problems on
See C.F. Sainte-Marie in L'Intermédiaire des mathématiciens, Paris, vol. xi, March, 1904, pp. 86–88.
Mathematical Tripos, Cambridge, Part I, 1894.
Reiss in Annali di matematica, Milan, November, 1871, vol. v, pp. 63–120.
That is .
numbers or elementary algebra as seemed worth reproducing. It will be noticed that the majority of them either are due to Bachet or were collected by him in his classical Problèmes; but it should be added that besides the questions I have mentioned he enunciated, even if he did not always solve, some other problems of greater interest. One instance will suffice.
BACHET’S WEIGHTS PROBLEM*. Among the more difficult problems proposed by Bachet was the determination of the least number of weights which would serve to weigh any integral number of pounds from 1 lb. to 40 lbs. inclusive. Bachet gave two solutions: namely, (i) the series of weights of 1, 2, 4, 8, 16, and 32 lbs.; (ii) the series of weights of 1, 3, 9, and 27 lbs.
If the weights may be placed in only one of the scale-pans, the first series gives a solution, as had been pointed out in 1556 by Tartaglia†.
Bachet, however, assumed that any weight might be placed in either of the scale-pans. In this case the second series gives the least possible number of weights required. His reasoning is as follows. To weigh 1 lb. we must have a 1 lb. weight. To weigh 2 lbs. we must have in addition either a 2 lb. weight or a 3 lb. weight; but, if we are confined to only one new weight (in addition to the 1 lb. we have got already), then with no weight greater than 3 lbs. could we weigh 2 lbs.: if we use a 2 lb. weight we then can weigh 1 lb., 2 lbs., and 3 lbs., but if we use a 3 lb. weight we then can weigh 1 lb., (3 − 1) lbs., 3 lbs., and (3 + 1) lbs.; hence a 3 lb. weight is preferable. Similarly, to enable us to weigh 5 lbs. we must have another weight not greater than 9 lbs., and a weight of 9 lbs. enables us to weigh every weight from 1 lb. to 13 lbs.; hence it is the best to choose. The next weight required will be lb., that is, will be 27 lbs.; and this enables us to weigh from 1 lb. to 40 lbs. Thus only four weights are required, namely, 1 lb., 3 lbs., lbs., and lbs.
We can show similarly that the series of weights of 1, 3, , , lbs. will enable us to weigh any integral number of pounds from 1 lb. to lbs., that is, to lbs. This is the least number with which the problem can be effected.
To determine the arrangement of the weights to weigh any given mass we have only to express the number of pounds in it as a number in the ternary scale of notation, except that in finding the successive
- Bachet, Appendix, problem V, p. 215.
† Trattato de’ numeri e misure, Venice, 1556, vol. II, bk. I, chap. XVI, art. 32.
digits we must make every remainder either 0, 1, or −1: to effect this a remainder 2 must be written as 3 −1, that is, the quotient must be increased by unity, in which case the remainder is −1. This is explained in most text-books on algebra.
Bachet’s argument does not prove that his result is unique or that it gives the least possible number of weights required. These omissions have been supplied by Major MacMahon, who has discussed the far more difficult problem (of which Bachet’s is a particular case) of the determination of all possible sets of weights, not necessarily unequal, which enable us to weigh any integral number of pounds from 1 to inclusive, (i) when the weights may be placed in only one scale-pan, and (ii) when any weight may be placed in either scale-pan. He has investigated also the modifications of the results which are necessary when we impose either or both of the further conditions () that no other weighings are to be possible, and () that each weighing is to be possible in only one way, that is, is to be unique.
The method for case (i) consists in resolving into factors, each factor being of the form ; the number of solutions depends on the composite character of . The method for case (ii) consists in resolving the expression into factors, each factor being of the form ; the number of solutions depends on the composite character of .
Bachet’s problem falls under case (ii), . MacMahon’s analysis shows that there are eight such ways of factorizing . First, there is the expression itself in which , . Second, the expression is equal to , which can be resolved into the product of and ; hence it can be resolved into two factors of the form given above, in one of which , , and in the other, , . Third, similarly, it can be resolved into two such factors, in one of which , , and in the other , . Fourth, it can be resolved into three such factors, in one of which , , in another , , and in the other, , . Fifth, it can be resolved into two such factors, in one of which , ,
See his article in the Quarterly Journal of Mathematics, 1886, vol. XXI, pp. 367–373. An account of the method is given in Nature, Dec. 4, 1890, vol. XLII, pp. 113–114.
and in the other , . Sixth, it can be resolved into three such factors, in one of which , , in another , , and in the other , . Seventh, it can be resolved into three such factors, in one of which , , in another , , and in the other , . Eighth, it can be resolved into four such factors, in one of which , , in another , , in another , , and in the other , .
These results show that there are eight possible sets of weights with which any integral number of pounds from 1 to 40 can be weighed subject to the conditions (ii), (a), and (b). If we denote weights each equal to by , these eight solutions are , , , , , , , , , 27; , , 27; , 9, 27; , 3, 9, 27. The last of these is Bachet’s solution: not only is it that in which the least number of weights are employed, but it is also the only unique one in which all the weights are unequal.
PROBLEMS IN HIGHER ARITHMETIC.
At the commencement of this chapter I alluded to the special interest which many mathematicians find in the theorems of higher arithmetic: such, for example, as that every prime of the form and every power of it is expressible as the sum of two squares*, and the first and second powers can be expressed thus in only one way. For instance, , , , and so on. Similarly , , , and so on.
Propositions such as the one just quoted may be found in textbooks on the theory of numbers and therefore lie outside the limits of this work, but there are one or two questions in higher arithmetic involving points not yet quite cleared up which may find a place here.
PRIMES. The first of these is concerned with the possibility of determining readily whether a given number is prime or not. Euler and Gauss attached great importance to this problem, but failed to establish any conclusive test. It would seem, however, that Fermat possessed some means of finding from its form whether a given number (at any rate if one of certain known forms) was prime or not. Thus, in answer to Mersenne who asked if he could tell without much trouble whether the number 100895,598169 was a prime, Fermat wrote on April 7, 1643, that it was the product of 898423 and 112303, both of which were
* Fermat’s Diophantus, Toulouse, 1670, bk. III, prop. 22, p. 127; or Brassinne’s Précis, Paris, 1853, p. 65.
primes. I have indicated elsewhere one way by which this result can be found, and Mr F.W. Laurence has indicated another which may have been that used by Fermat in this particular case.
MERSENNE’S NUMBERS.* Another illustration, confirmatory of the opinion that Fermat or some of his contemporaries had a test by which it was possible to find out whether certain numbers were prime, may be drawn from Mersenne’s Cogitata Physico-Mathematica which was published in 1644. In the preface to that work it is asserted that in order that may be prime, the only values of , not greater than 257, which are possible are 1, 2, 3, 5, 7, 13, 17, 19, 31, 67, 127, and 257: I conjecture that the number 67 is a misprint for 61. With this correction the statement appears to be true, and it has been verified for all except nineteen values of : namely, 71, 101, 103, 107, 109, 137, 139, 149, 157, 163, 167, 173, 181, 193, 199, 227, 229, 241, and 257. Of these values, Mersenne asserted that makes a prime, and that the other values make a composite number. The demonstrations for the cases when , 127 have not been published; nor have the actual factors of when been as yet determined: the discovery of these factors may be commended to those interested in the theory of numbers.