All public Sources
Public document

Mathematical Recreations and Essays

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

Of the 25 cases in which we know that Mersenne's statement of the composite character of NN is correct all save 3 can be easily verified by trial in this way. For neglecting all values of tt not exceeding, say,


∗^{*} Legendre, Théorie des Nombres, third edition, Paris, 1830, vol. 1, § 143. In the case of Mersenne's numbers, B=b=1B=b=1.

†^{\dagger} For methods of finding the residue indices of 2 see Bickmore, Messenger of Mathematics, May, 1895, vol. xxv, pp. 15–21; see also Lieut-Colonel A.J.C. Cunningham on 2 as a 16-ic residue, Proceedings of the London Mathematical Society, 1895–6, vol. xxvii, pp. 85–122.

‡^{\ddagger} Transactions of the British Association for the Advancement of Science (Ipswich Meeting), 1895, p. 614.

60 which make qq either composite or not of one of the forms 8i±18i \pm 1 we have in each case only some 20 or so divisors to try. Of the 3 other cases in which Mersenne’s statement of the composite character of NN has been verified, one verification (p=41p = 41) is due to Plana, who frankly confessed that the result was reached “par un heureux hasard”; a second is due to Landry (p=59p = 59), who did not explain how he obtained the factors; and the third is due to Cole (p=67p = 67), who established it by the use of quadratic residues of NN, involving laborious numerical work.

Of the 10 cases in which we know that Mersenne’s statement of the prime character of NN is correct all save one may be verified by trial in this way, for the number of possible factors is not large. The exception is the case where pp equals 61, which Seelhoff and others have shown to be prime.

Thus practically we may say that simple empirical trials would at once lead us to all the conclusions known except in the case of p=41p = 41 due to Plana, of p=59p = 59 due to Landry, of p=61p = 61 due to Seelhoff, and of p=67p = 67 due to Cole. In fact, save for these four results the conclusions of all mathematicians to date could be obtained by anyone by a few hours’ arithmetical work.

As pp increases the number of factors to be tried increases so fast that, if pp is large, it would be practically impossible to apply the test to obtain large factors. This is an important point, for it has been asserted that in the cases still awaiting verification there are no factors less than 50,000. Hence, we may take it as reasonably certain that this cannot have been the method by which the result was originally obtained; nor, as here enunciated, is it likely to give many factors not yet known. Of course it is possible there may be ways by which the number of possible values of tt might be further limited, and if we could find them we might thus diminish the number of possible factors to be tried, but it will be observed that the values of NN which still await verification are very large, for instance, when p=257p = 257, NN contains no less than 78 digits.

It is hardly necessary to add that if qq is known and is not very large we can determine whether or not it is a factor of NN without the labour of performing the division.

For instance, if we want to verify that q=13367q = 13367 is a factor of NN when p=41p = 41, we proceed thus. Take the power of 2 nearest to qq or to

its square-root. We have to the modulus qq

214=16384≡3017≡7×431,∴228≡49(−1377)≡−638,∴227≡−319,∴214+27≡(3017)(−319)≡1,∴241≡1.\begin{aligned} 2^{14} &= 16384 \equiv 3017 \equiv 7 \times 431, \\ \therefore\quad 2^{28} &\equiv 49(-1377) \equiv -638, \\ \therefore\quad 2^{27} &\equiv -319, \\ \therefore\quad 2^{14+27} \equiv (3017)(-319) \equiv 1, \\ \therefore\quad 2^{41} &\equiv 1. \end{aligned}

Second. We can proceed by reducing the problem to the solution of an indeterminate equation.

It is clear that we can obtain a factor of NN if we can express it as the difference of the squares, or more generally of the nnth powers, of two integers uu and vv. Further, if we can express a multiple of NN, say mNmN, in this form, we can find a factor of mNmN and (with certain obvious limitations as to the value of mm) this will lead to a factor of NN. It may be also added that if mm can be found so that N/mN/m is expressible as a continued fraction of a certain form, a certain continuant* defined by the form of the continued fraction is a factor of NN.

Since NN can always be expressed as the difference of two squares, this method seems a natural one by which to attack the problem. If we put

N=n2+a=(n+b)2−(b2+2bn−a),N = n^2 + a = (n + b)^2 - (b^2 + 2bn - a),

we can make use of the known forms of uu and vv, and thus obtain an indeterminate equation between two variables xx and yy of the form

x2=(2py+H)2−4(K−y)x^2 = (2py + H)^2 - 4(K - y)

where HH and KK are numbers which can be easily calculated. Integral values of xx and yy where y<Ky < K will determine values of uu and vv, and thus give factors of NN.

We can also attack the problem by indeterminate equations in an-


* See J.G. Birch in the Messenger of Mathematics, August, 1902, vol. XXII, pp. 52–55.

other way. For the factors must be of the form 2pt+12pt+1 and 8ps+18ps+1, hence

(2pt+1)(8ps+1)=N,=2p−1,=2(2p−1−1)+1,∴4s+t+8pst=(2p−1−1)/p,=(say) α+8pβ.\begin{aligned} (2pt+1)(8ps+1) &= N,\\ &= 2^p-1,\\ &= 2(2^{p-1}-1)+1,\\ \therefore\quad 4s+t+8pst &= (2^{p-1}-1)/p,\\ &= (\text{say})\,\alpha+8p\beta. \end{aligned}

Hence

4s+t=α+8px, and st=β−x,4s+t=\alpha+8px,\text{ and }st=\beta-x,

where x≢βx\not\equiv\beta and tt is odd. These results again lead to an indeterminate equation.

But, in both cases, unless pp is small, the resulting equations are intractable.

Third. A not uncommon method of attacking problems such as this, dealing with the factorization of large numbers, is through the theory of quadratic forms∗^{*}. At best this is a difficult method to use, and we have no reason to think that it would have been employed by a mathematician of the seventeenth century. I here content myself with alluding to it.

Fourth. There is yet another way in which the problem might be attacked. The problem will be solved if we can find an odd prime qq so that to it as modulus 2p+y≡z2^{p+y}\equiv z, and 2y≡z2^y\equiv z, where yy and zz may have any values we like to choose. If such values of qq, yy, and zz can be found, we have 2y(2p−1)≡02^y(2^p-1)\equiv0. Therefore 2p=12^p=1, that is, qq is a divisor of NN.

For example, to the modulus 23, we have

28≡3,216≡32.\begin{aligned} 2^8 &\equiv3,\\ 2^{16} &\equiv3^2. \end{aligned}

Also

25≡32.2^5\equiv3^2.

Therefore

216−25≡0,2^{16}-2^5\equiv0, ∴211−1≡0.\therefore\quad 2^{11}-1\equiv0.

Without going further into the matter we may say that the à priori determination of the values qq, yy, and zz introduces us to an almost


∗^{*} For a sketch of this see G.B. Mathews, Theory of Numbers, part 1, Cambridge, 1891, pp. 261-271. See also F.N. Cole's paper, On the Factoring of Large Numbers, Bulletin of the American Mathematical Society, December, 1903, pp. 134-137; and Quadratic Partitions by A.J.C. Cunningham, London, 1904.

untrodden field. It is just possible (though I should suppose unlikely) that the key to the riddle is to be found on methods of finding qq, yy, zz, to satisfy the above conditions. For instance, if we could say what was the remainder when 2x2^x was divided by a prime qq of the form 2pt+12pt+1, and if the remainders were the same when x=ux=u and x=vx=v, then to the modulus qq we should have, 2u≡2v2^u\equiv2^v, and therefore 2u−v≡12^{u-v}\equiv1.

It should however be noted that Jacobi’s Canon Arithmeticus and the similar canon drawn up by Cunningham would, if carried far enough, enable us to solve the problem by this method. Cunningham’s Canon gives the solution of the congruence 2x≡R2^x\equiv R for all prime moduli less than 1000, but it is of no use in determining factors of NN larger than 1000. It is however possible that if RR or qq have certain forms such a canon might be constructed, and thus lead to a solution of the problem.

Fifth. It is noteworthy that the odd values of pp specified by Mersenne are primes of one of the four forms 2q±12^q\pm1 or 2q±32^q\pm3, but it is not the case that all primes of these forms make NN a prime, for instance, NN is composite if p=23+3=11p=2^3+3=11 or if p=25−3=29p=2^5-3=29.

This fact has suggested to more than one mathematician the possibility that some test as to the prime or composite character of NN when pp is of one of these forms may be discoverable. Of course this is merely a conjecture. There is however this to say for it, that we know that Fermat* had paid attention to numbers of this form.

Sixth. The number NN when expressed in the binary scale, consists of 1 repeated pp times. This has suggested whether the work connected with the determination of factors of NN might not with advantage be expressed in the binary scale. A method based on the use of properties of this scale has been indicated by G. de Longchamps†, but as there given it would be unlikely to lead to the discovery of large divisors. I am, however, inclined to think that greater advantages would be gained by working in a scale whose radix was 4p4p or may-be 8p8p-the resulting numbers being then expressed by a reasonably small number of digits. In fact when expressed in the latter scale in only one out of the 25 cases in which the factors of NN are known does the smallest factor contain more than two digits.


  • Ex. gr., see above, page 31.

† Comptes rendus de l’Académie des Sciences, Paris, Nov. 1877, vol. LXXXV, pp. 950–952.

Original PDF link to page 47

Seventh. I have reserved to the last the description of the method which seems to me to be the most hopeful.

We know by Fermat’s Theorem that if x+1x+1 is a prime then 2x−12^x-1 is divisible by x+1x+1. Hence if 2pt+12pt+1 is a prime we have, to the modulus 2pt+12pt+1

22pt−1≡0 ,2^{2pt}-1\equiv0\,, ∴(2p−1)(1+2p+22p+⋯+2(2t−1)p)≡0 .\therefore(2^p-1)(1+2^p+2^{2p}+\cdots+2^{(2t-1)p})\equiv0\,.

Hence, a divisor of 2p−12^p-1 will be known, if we can find a value of tt such that 2pt+12pt+1 is prime and the second factor is prime to it.

This method may be used to establish Euler’s theorem of 1732. For if we put t=1t=1, and if 2p+12p+1 is a prime, we have, to the modulus 2p+12p+1

(2p−1)(2p+1)≡0 .(2^p-1)(2^p+1)\equiv0\,.

Hence 2p≡12^p\equiv1 if 2p+12^p+1 is prime to 2p+12p+1. This is the case if p=4m+3p=4m+3. Hence 2p+12p+1 is a factor of NN if p=11p=11, 23, 83, 131, 179, 191, 239, and 251, for in these cases 2p+12p+1 is prime.

The problem of Mersenne’s Numbers is a particular case of the determination of the factors of an−1a^n-1. This has been the subject of investigations by many mathematicians: an outline of their conclusions has been given by Bickmore*. I ought also to add a reference to the general method suggested by F.W. Lawrence† for the factorization of any high number: it is possible that Fermat used some method analogous to this.

Continue reading
Page 52 of 81