All public Sources
Public document

Mathematical Recreations and Essays

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

The known results as to the prime or composite character of NN, and in the latter case its smallest factor, are given in the table on the following page. The cases that remain as yet unverified are marked with an asterisk.

Before describing the methods used for attacking the problem it will be convenient to state in more detail when and by whom these results were established.

The factors (if any) of such values of NN as are less than a million can be verified easily: they have been known for a long time, and I need not allude to them in detail.

The factors of NN when p=11p = 11, 23, and 37 had been indicated by Fermat*, some four years prior to the publication of Mersenne’s work, in a letter dated October 18, 1640. The passage is as follows:

En la progression double, si d’un nombre quarré, généralement parlant, vous ôtez 2 ou 8 ou 32 &c., les nombres premiers moindres de l’unite qu’un multiple du quaternaire, qui mesureront le reste, feront l’effet requis. Comme de 25, qui est un quarré, ôtez 2; le reste 23 mesurera la 11e puissance −1-1; ôtez 2 de 49, le reste 47 mesurera la 23e puissance −1-1. Ôtez 2 de 225, le reste 223 mesurera la 37e puissance −1-1, &c.

The factors of NN when p=29p = 29, 43, and 73 were given by Euler†


  • Oeuvres de Fermat, Paris, vol. II, 1894, p. 210; or Opera Mathematica, Toulouse, 1679, p. 164; or Brassinne’s Précis, Paris, 1853, p. 144.

† Commentarii Academiae Scientiarum Petropolitanae, 1738, vol. VI, p. 103; or Commentationes Arithmeticae Collectae, vol. I, p. 2.

Original PDF link to page 242

ppValue of N=2p−1N = 2^p - 1
11prime
23prime
37prime
531prime
7127prime
112047=23×892047 = 23 \times 89composite
138191prime
17131071prime
19524287prime
238388607=47×1784818388607 = 47 \times 178481compositeFermat
29536870911=233×1103×2089536870911 = 233 \times 1103 \times 2089compositeEuler
312147483647primeEuler
37137438953471=223×616318177137438953471 = 223 \times 616318177compositeFermat
412199023255551=13367×1645113532199023255551 = 13367 \times 164511353compositePlana
438796093022207=431×9719×20998638796093022207 = 431 \times 9719 \times 2099863compositeEuler
472351×4513×132645292351 \times 4513 \times 13264529compositeLandry
536361×69431×203944016361 \times 69431 \times 20394401compositeLandry
59179951×3203431780337179951 \times 3203431780337compositeLandry
6123058430092136939512305843009213693951primeSeelhoff
67≡0\equiv 0 (193707721)compositeCole
7123611832414348226068472361183241434822606847*
73≡0\equiv 0 (439)compositeEuler
79≡0\equiv 0 (2687)compositeLe Lasseur
83≡0\equiv 0 (167)compositeEuler
89618970019642690137449562111618970019642690137449562111*
97≡0\equiv 0 (11447)compositeLe Lasseur
10125353012004564588029934064107512535301200456458802993406410751*
1031014120480182583521197362564300710141204801825835211973625643007*
107162259276829213363391578010288127162259276829213363391578010288127*
109649037107316853453566312041152511649037107316853453566312041152511*
113≡0\equiv 0 (3391)compositeLe Lasseur
127170141183460469231731687303715884105727170141183460469231731687303715884105727*
131≡0\equiv 0 (263)compositeEuler
137**
139**
149**
151≡0\equiv 0 (18121)compositeLe Lasseur
157**
163**
167**
ppValue of N=2p−1N = 2^p - 1
173*
179≡0\equiv 0 (359)compositeEuler
181*
191≡0\equiv 0 (383)compositeEuler
193*
197≡0\equiv 0 (7487)compositeCunningham
199*
211≡0\equiv 0 (15193)compositeLe Lasseur
223≡0\equiv 0 (18287)compositeLe Lasseur
227*
229*
233≡0\equiv 0 (1399)compositeLe Lasseur
239≡0\equiv 0 (479)compositeEuler
241*
251≡0\equiv 0 (503)compositeEuler
257*

in 1732. The fact that NN is composite for the values p=83p = 83, 131, 179, 191, 239, and 251 follows from a proposition enunciated, at the same time, by Euler to the effect that, if 4n+34n + 3 and 8n+78n + 7 are primes, then 24n+3−1≡02^{4n+3} - 1 \equiv 0 (mod 8n+78n + 7). This was proved by Lagrange* in his classical memoir of 1775. The proposition also covers the cases of p=11p = 11 and p=23p = 23. This is the only general theorem on the subject which is yet established.

The fact that NN is prime when p=31p = 31 was proved by Euler† in 1771. Fermat had asserted, in the letter mentioned above, that the only possible prime factors of 2p±12^p \pm 1, when pp was prime, were of the form np+1np + 1, where nn is an integer. This was proved by Euler‡ in 1748, who added that, since 2p±12^p \pm 1 is odd, every factor of it must be odd, and therefore if pp is odd nn must be even. But if pp is a given number we can define nn much more closely, and Euler showed that the prime factors (if any) of 231−12^{31} - 1 were necessarily primes of the form 248n+1248n + 1 or 248n+63248n + 63; also they must be less than 231−1\sqrt{2^{31} - 1}, that is, than 46339.


* Nouveaux Mémoires de l’Académie des Sciences de Berlin, 1775, pp. 323–356.

† Histoire de l’Académie des Sciences for 1772, Berlin, 1774, p. 36. See also Legendre, Théorie des Nombres, third edition, Paris, 1830, vol. 1, pp. 222–229.

‡ Novi Commentarii Academiae Scientiarum Petropolitanae, vol. 1, p. 20; or Commentationes Arithmeticae Collectae, St Petersburg, 1849, vol. 1, pp. 55, 56.

Hence it is necessary to try only forty divisors to see if 231−12^{31}-1 is a prime or composite.

The factors of NN when p=41p=41 were given by Plana* in 1859. He showed that the prime factors (if any) are primes of the form 328n+1328n+1 or 328n+247328n+247, and lie between 1231 and 241−1\sqrt{2^{41}-1}, that is, 1048573. Hence it is necessary to try only 513 divisors to see if 241−12^{41}-1 is composite: the seventeenth of these divisors gives the required factors. This is the same method of attacking the problem which was used by Euler in 1771, but it would be very laborious to employ it for values of pp greater than 41. Plana† added the forms of the prime divisors of NN, if pp is not greater than 101.

That NN is prime when p=127p=127 seems to have been verified by Lucas‡ in 1876 and 1877. The demonstration has not been published.

The discovery of the factors of NN for the values p=47p=47, 53, and 59 is due apparently to the late F. Landry, who established theorems on the factors (if any) of numbers of certain forms. Instead of publishing his results he issued a challenge to all mathematicians to solve the general problem. This is contained in a rare pamphlet published at Paris in 1867, of which I possess a copy, in which the factors of certain numbers are given, and on page 8 of which it is implied that he had obtained the factors of 2p−12^p-1 when p=47p=47, 53, and 59. He seems to have communicated his results to Lucas, who quoted them in the memoir cited below§.

The factors of NN when p=79p=79 and 113 were given first by Le Lasseur, and were quoted by Lucas in the same memoir§.

A factor of NN when p=233p=233 was discovered later by Le Lasseur, and was quoted by Lucas in 1882||.

The factors of NN when p=97p=97, 151, 211, and 223 were determined subsequently by Le Lasseur, and were quoted by Lucas in 1883.

  • G.A.A. Plana, Memorie della Reale Accademia delle Scienze di Torino, Series 2, vol. XX, 1863, p. 130.

† Ibid., p. 137.

‡ Sur la Théorie des Nombres Premiers, Turin, 1876, p. 11; and Recherches sur les Ouvrages de Léonard de Pise, Rome, 1877, p. 26, quoted by Lieut.-Colonel A.J.C. Cunningham, Proceedings of the London Mathematical Society, Nov. 14, 1895, vol. XXVII, p. 54.

§ American Journal of Mathematics, 1878, vol. 1, p. 236.

|| Récréations, 1882–3, vol. 1, p. 241.

¶ Ibid., vol. II, p. 230.

That NN is prime when p=61p=61 had been conjectured by Landry and in 1886 a demonstration was offered by Seelhoff*. His demonstration is open to criticism, but the fact has been verified by others†, and may be accepted as proved.

That NN is composite when p=89p=89 seems to have been verified by Lucas‡ in 1891, but the demonstration has not been published, nor have the actual factors been discovered.

That 7487 is a factor of NN when p=197p=197 was shown by A.J.C. Cunningham in 1895§.

That NN is not prime when p=67p=67 seems to have been verified by Lucas∥ in 1876 and 1877. The composite nature of1 N=2p−1N=2^p-1 when p=67p=67 was confirmed by E. Fauquembergue, and was also implied by Lucas** in 1891. The factors were given by F.N. Cole†† in 1903.

Bickmore in the memoir<sup‡‡ cited below showed that 1433 is another factor of NN if p=179p=179; and that 1913 and 5737 are other factors of NN if p=239p=239.

I turn next to consider the methods by which these results can be obtained. It is impossible to believe that the statement made by Mersenne rested on an empirical conjecture, but the riddle as to how it was discovered is still, after nearly 250 years, unsolved.

I cannot offer any solution of the riddle. But it may be interesting to indicate some ways which have been used in attacking the problem.


  • P.H.H. Seelhoff, Zeitschrift für Mathematik und Physik, 1886, vol. XXXI, p. 178.

† See Weber-Wellstein, Encyclopaedie der Elementar-Mathematik, p. 48; and F.N. Cole, Bulletin of the American Mathematical Society, December, 1903, p. 136.

‡ Théorie des Nombres, Paris, 1891, p. 376.

§ Proceedings of the London Mathematical Society, March 14, 1895, vol. XXVI, p. 261.

∥ Sur la Théorie des Nombres Premiers, Turin, 1876, p. 11, quoted by Lieut-Colonel A.J.C. Cunningham, Proceedings of the London Mathematical Society, Nov. 14, 1895, vol. XXVII, p. 54, and Recherches sur les Ouvrages de Léonard de Pise, Rome, 1877, p. 26.

L’Intermédiaire des mathématiciens, Paris, Sept. 1894, vol. 1, p. 148.

** Théorie des Nombres, Paris, 1891, p. 376.

†† On the Factoring of Large Numbers, Bulletin of the American Mathematical Society, December, 1903, pp. 134–137.

‡‡ C.E. Bickmore, Messenger of Mathematics, Cambridge, 1895, vol. XXV, p. 19.


  1. Corrected: originally N 2p=1N\ 2^p=1

The object is to find a prime divisor qq (other than NN and 1) of a number NN when NN is of the form 2p−12^p-1 and pp is a prime. It can be easily shown that qq must be of the form 2pt+12pt+1. Also qq must be of one of the forms 8i±18i\pm1: for NN is of the form 2A2−B22A^2-B^2, where AA is even and BB odd, hence∗^{*} any factor of it must be of the form 2a2−b22a^2-b^2, that is, of the form 8i±18i\pm1, and 2 must be a quadratic residue of qq. The theory of residues is, however, of but little use in finding factors of the cases that still await solution, though the possibility some day of finding a complete series of solutions by properties of residues must not be neglected†^{\dagger}. Our present knowledge of the means of factorizing NN has been summed up in the statement‡^{\ddagger} that a prime factor of the form 2pt+12pt+1 can be found directly by rules due to Legendre, Gauss, and Jacobi, when t=1t=1, 3, 4, 8, or 12; and that a factor of the form 2ptt′+12ptt'+1 can be found indirectly by a method due to Bickmore when t=1t=1, 3, 4, 8, or 12, and t′t' is an odd integer greater than 3. But this only indicates how little has yet been done towards finding a general solution of the problem.

First. There is the simple but crude method of trying all possible prime divisors qq which are of the form 2pt+12pt+1 as well as of one of the forms 8i±18i\pm1.

The chief known results for the smaller factors may be summarized by saying that a prime of this form will divide NN when t=1t=1, if p=11p=11, 23, 83, 131, 179, 191, 239, or 251; when t=3t=3, if p=37p=37, 73, or 233; when t=5t=5, if p=43p=43; when t=15t=15, if p=113p=113; when t=17t=17, if p=79p=79; when t=19t=19, if p=29p=29, or 197; when t=25t=25, if p=47p=47; when t=41t=41, if p=223p=223; when t=59t=59, if p=97p=97; when t=163t=163, if p=41p=41; when t=1525t=1525, if p=59p=59; when t=4t=4, if p=11p=11, 29, 179, or 239; when t=8t=8, if p=11p=11; when t=12t=12, if p=239p=239; when t=36t=36, if p=29p=29, or 211; when t=60t=60, if p=53p=53, or 151; and when t=1445580t=1445580, if p=67p=67.

Continue reading
Page 51 of 81