Proof of a theorem of Fermat that every prime number of the form 4n + 1 is a sum of two squares

Similar documents
An observation on the sums of divisors

arxiv: v1 [math.ho] 30 Nov 2007

On divergent series. Leonhard Euler

arxiv:math/ v3 [math.ho] 18 Jul 2009

How Euler Did It. by Ed Sandifer. A theorem of Newton %! 3 =! 3 + " 3 + # 3 +!+ $ 3, %! =! + " + # +!+ $, ! 2 =! 2 + " 2 + # 2 +!

How Euler Did It. A Series of Trigonometric Powers. 1 x 2 +1 = 2. x 1, x ln x + 1 x 1.

On Maxima and Minima *

How Euler Did It. Today we are fairly comfortable with the idea that some series just don t add up. For example, the series

On the general Term of hypergeometric Series *

FACTORIZATION AND THE PRIMES

On the remarkable Properties of the Coefficients which occur in the Expansion of the binomial raised to an arbitrary power *


How Euler Did It. by Ed Sandifer. Partial fractions. June 2007

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

On the Interpolation of series *

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

Divisibility, Factors, and Multiples

THE TRIANGULAR THEOREM OF THE PRIMES : BINARY QUADRATIC FORMS AND PRIMITIVE PYTHAGOREAN TRIPLES

Solution of a very difficult Question in the Calculus of Probabilities

STRATEGIES OF PROBLEM SOLVING

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

Chapter 1 Elementary Logic

On the investigation of summable series *

A connection between number theory and linear algebra

Several Remarks on Infinite Series

arxiv: v1 [math.ho] 23 May 2007

How Euler Did It. Many people have been interested in summing powers of integers. Most readers of this column know, for example, that ( )

MAS114: Solutions to Exercises

The History of Mathematics, Part 8. Chuck Garner, Ph.D. February 3, 2014

Section 1.1: Logical Form and Logical Equivalence

CONSTRUCTION OF THE REAL NUMBERS.

Almost von Neumann, Definitely Gödel: The Second Incompleteness Theorem s Early Story

arxiv: v1 [math.ho] 4 Jul 2007

The Completion of a Metric Space

Factoring Trinomials of the Form ax 2 + bx + c, a 1

1 The Well Ordering Principle, Induction, and Equivalence Relations

Appendix 2. Leibniz's Predecessors on the Continuum. (a) Aristotle

DE RESOLUTIONE AEQUATIONUM CUIUSVIS GRADUS LEONHARD EULER TRANSLATED BY HENRY J. STEVENS AND T. CHRISTINE STEVENS

Pell s Equation Claire Larkin

Direct Proof and Counterexample I:Introduction

Direct Proof and Counterexample I:Introduction. Copyright Cengage Learning. All rights reserved.

Logic and Propositional Calculus

Mathematical Writing and Methods of Proof

In this initial chapter, you will be introduced to, or more than likely be reminded of, a

On the Prime Divisors of Odd Perfect Numbers

Math 4606, Summer 2004: Inductive sets, N, the Peano Axioms, Recursive Sequences Page 1 of 10

1 Implication and induction

Introducing Proof 1. hsn.uk.net. Contents

ORDERS OF UNITS IN MODULAR ARITHMETIC

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

A Brief Introduction to Proofs

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

3 The language of proof

Basic Algebra. Final Version, August, 2006 For Publication by Birkhäuser Boston Along with a Companion Volume Advanced Algebra In the Series

Russell s logicism. Jeff Speaks. September 26, 2007

On Various Ways of Approximating the Quadrature of a Circle by Numbers. 1 Author Leonh. Euler

exceptional value turns out to be, "RAC" CURVATURE calling attention especially to the fundamental Theorem III, and to emphasize

The Limit of Humanly Knowable Mathematical Truth

University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

Number Theory and Divisibility

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

32 Divisibility Theory in Integral Domains

ESSAI sur la maniére de trouver le terme général des séries recurrentes.

CMSC 27130: Honors Discrete Mathematics

Executive Assessment. Executive Assessment Math Review. Section 1.0, Arithmetic, includes the following topics:

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Chapter 1: The Logic of Compound Statements. January 7, 2008

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

On finding three or more numbers, the sum of which is a square, while the sum of the squares is a fourth power

All About Numbers Definitions and Properties

MTH310 EXAM 2 REVIEW

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

How might we evaluate this? Suppose that, by some good luck, we knew that. x 2 5. x 2 dx 5

Chapter 5. Number Theory. 5.1 Base b representations

EXERCISES IN QUATERNIONS. William Rowan Hamilton. (The Cambridge and Dublin Mathematical Journal, 4 (1849), pp ) Edited by David R.

CANONICAL FORMS FOR LINEAR TRANSFORMATIONS AND MATRICES. D. Katz

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

8.6 Partial Fraction Decomposition

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

Scott Taylor 1. EQUIVALENCE RELATIONS. Definition 1.1. Let A be a set. An equivalence relation on A is a relation such that:

Number Theory and Graph Theory. Prime numbers and congruences.

p, p or its negation is true, and the other false

The primitive root theorem

SUR LE CALCUL DES PROBABILITÉS

Exponents and Logarithms

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

PROBLEM SOLVING. (2n +1) 3 =8n 3 +12n 2 +6n +1=2(4n 3 +6n 2 +3n)+1.

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

MATH 361: NUMBER THEORY FOURTH LECTURE

The paradox of knowability, the knower, and the believer

MAS114: Exercises. October 26, 2018

PELL S EQUATION NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA, ODISHA

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

Manual of Logical Style

Discrete Math. Instructor: Mike Picollelli. Day 10

Introduction to Sets and Logic (MATH 1190)

Chapter Five Notes N P U2C5

Philosophy 5340 Epistemology. Topic 3: Analysis, Analytically Basic Concepts, Direct Acquaintance, and Theoretical Terms. Part 2: Theoretical Terms

Transcription:

Proof of a theorem of Fermat that every prime number of the form 4n + 1 is a sum of two squares Leonhard Euler 1. When I recently 1 considered these numbers which arise from the addition of two squares, I proved many properties which such numbers are endowed with: it was not permitted to prolong adequately my thoughts about this so that I could show for certain the truth of this theorem, which Fermat once proposed to be proved via geometry. Nevertheless, I then published an attempt at the proof, from which the certainty of this theorem shines much brighter, although it is lacking, according to the criteria of a rigorous proof: I did not doubt that by continuing in the same path, the desired proof could more easily be obtained, which indeed since that time came to me with experience, so that the attempt, if some other slick idea appears, may become a rigorous proof. Indeed, I can boast of having provided nothing new about this subject, because Fermat himself already claimed to have elicited a proof of this theorem, but in fact did not make it public anywhere, just as with the many other exceptional discoveries of this man, so that what now at last from these lost things we recover, as it were, these things not unjustly are regarded as new discoveries. Because certainly no one ever so successfully delved into the arcana of numbers as Fermat, all additional work in this science to be developed appears to be spent in vain, except previously, which things from this excellent man are now investigated, as if they are brought to light anew. Although after him, many learned men in this field of studies have exerted their own efforts, still generally nothing has followed which can be compared with the ingenuity of this man. 2. As for the proof of the theorem, which I consider here, I have arranged two propositions it is necessary to call upon for assistance, the proof of which I have already given elsewhere. The first is that all numbers which are divisors of sums of two squares prime between themselves are themselves sums of two squares; Originally published as Demonstratio theorematis Fermatiani omnem numerum primum formae 4n + 1 esse summam duorum quadratorum, Novi Commentarii academiae scientiarum Petropolitanae 5 (1760), pp. 3 13. E241 in the Eneström index. Translated from the Latin by Paul R. Bialek, Department of Mathematics, Trinity International University, Deerfield, Illinois, email: pbialek@tiu.edu 1 Translator: Euler is referring to E228, De numeris, qui sunt aggregata duorum quadratorum. 1

thus, if a and b are numbers prime between themselves, and d is a divisor of a number of the form aa+bb, then d will also be a sum of two squares; I have given a proof of this theorem in a work mentioned earlier, in which I consider numbers which are sums of two squares. The first proposition which the following proof requires is that if p is a prime number and a and b are any numbers not divisible by p, then a p 1 b p 1 will always be divisible by the prime number p; I have already given the proof of this result in Commentarii Academiae Petropolitanae, Volume VIII. 3. So if 4n+1 is a prime number, all numbers contained in the form a 4n b 4n will be divisible by it, as long as neither of the numbers a or b is divisible by 4n + 1. Therefore, if a and b are numbers less than 4n + 1 but not equal to 0, then a number of the form a 4n b 4n will be divisible by the given prime number 4n + 1 without any limitation. Because a 4n b 4n is a product of the factors a 2n + b 2n and a 2n b 2n, it is necessary that one of the two factors is divisible by 4n + 1; in other words, it cannot be that neither or both have 4n + 1 as a divisor. For if indeed it can be shown to be the case in which the form a 2n + b 2n is divisokible by 4n + 1, since a 2n + b 2n, on account of its even exponent 2n, is a sum of two squares, neither of which is divisible by 4n + 1, from this it follows that the number 4n + 1 is a sum of two squares. 4. Certainly the sum a 2n + b 2n will be divisible by 4n + 1 whenever the difference a 2n b 2n is not divisible by this same number. Therefore, anyone who will say that the prime number 4n + 1 is not a sum of two squares is forced to deny that any number of the form a 2n + b 2n is divisible by 4n + 1. Thus, one should affirm the same, namely, that all numbers contained in the form a 2n b 2n are divisible by 4n + 1, as long as neither a nor b is divisible by 4n + 1. Accordingly, it is to be proved here by me that not all numbers contained in the form a 2n b 2n are divisible by 4n + 1; indeed, in this, if I will have succeeded. it will certainly be the case, if numbers are substituted for a and b for which the form a 2n b 2n is not divisible by 4n + 1; then, in those cases, the other form a 2n + b 2n will necessarily be divisible by 4n + 1. From this, because a 2n and b 2n are squares, that which is proposed will have been finished, namely, that the number 4n + 1 is a sum of two squares. 5. Therefore, so that I may prove that not all numbers contained in the form a 2n b 2n, in other words, not all differences between two powers with exponent 2n, are divisible by 4n + 1, I will consider the series of powers from 1 up to what is formed from the base 4n: 1, 2 2n, 3 2n, 4 2n, 5 2n, 6 2n,..., (4n) 2n. And now I declare that not all differences between two terms of this series are divisible by 4n+1. For instance, if the terms of the first difference, 2 2n 1, 3 2n 2 2n, 4 2n 3 2n, 5 2n 4 2n,..., (4n) 2n (4n 1) 2n were divisible by 4n + 1, then the differences of the progression which are the second differences of that series would also be divisible by 4n + 1; and by the same reasoning, third differences, fourth, fifth, etc. would all be divisible by 4n + 1, and, finally, also differences of order 2n, which, as they are constant, are all equal to each other. However, the differences of order 2n are equal to 4 2n, which therefore are 2

not divisible by the prime number 4n + 1, from which it follows in turn that certainly not all first differences are divisible by 4n + 1. 6. By virtue of which, the power of this proof is better observed, it is to be noted that the difference of order 2n is produced from 2n + 1 terms of the given series, which, if they are taken from the beginning, are all so collected that differences of whichever pairs should be divisible by 4n + 1 if the truth of the theorem is negated. But if more terms from this last constituted difference were assembled, and they were to proceed beyond the term (4n) 2n, seeing that the differences arising from the following term (4n + 1) 2n do not relate to the statement of the theorem, the proof would retain no validity. However, because the last difference which we are considering depends only on 2n + 1 terms, the conclusion which we deduced from it is entirely legitimate. And from this it follows that the first differences will be like a 2n (a 1) 2n, which is not divisible by 4n + 1, and in such a way that a is not greater than 2n + 1. However, later the sum a 2n + (a 1) 2n, is properly obtained, and therefore the sum of two squares is necessarily divisible by 4n + 1, and thus the prime number 4n + 1 is a sum of two squares. 7. Since the difference of order 2n depends on 2n + 1 terms from a series of powers, let us consider only that many terms taken from the beginning of 1, 2 2n, 3 2n, 4 2n, 5 2n, 6 2n, 2n 2n, (2n + 1) 2n, from which the first differences will be 2 2n 1, 3 2n 2 2n, 4 2n 3 2n, 5 2n 4 2n,..., (2n + 1) 2n (2n) 2n, in which the number of terms in the progression is 2n. And so, from the preceding demonstration it is evident that not all terms in this progression of differences are divisible by the prime number 4n + 1. If however we examine the special cases in which 4n + 1 is a prime number, from those differences, of which there are 2n, we will always discover that half are divisible by 4n + 1, and the other half are, of course, not divisible. Even if this observation does not seem to have the strength of a proof, it nevertheless does not oppose at all what is to be explained. Therefore, it will be helpful to re-examine some special cases. 8. The smallest prime number of the form 4n + 1 is 5, which arises if n = 1. From this will be obtained the two differences 2 2 1 and 3 2 2 2, of which the former is not divisible by 5, but the other is so divisible. For the remaining cases, I use d to indicate the differences which are divisible, 2 and 0 those which are not divisible, the signs of which we write below the differences, according to the case. 2 Translator: By 4n + 1. 3

4n + 1 Differences 13 2 6 1, 3 6 2 6, 4 6 3 6, 5 6 4 6, 6 6 5 6, 7 6 6 6 0 0 d 0 d d 17 2 8 1, 3 8 2 8, 4 8 3 8, 5 8 4 8, 6 8 5 8, 7 8 6 8, d 0 0 0 d d 8 8 7 8, 9 8 8 8 0 d 29 2 14 1, 3 14 2 14, 4 14 3 14, 5 14 4 14, 6 14 5 14, 7 14 6 14, 0 d 0 d d d 8 14 7 14, 9 14 8 14, 10 14 9 14, 11 14 10 14, 12 14 11 14, 13 14 12 14, 0 0 0 d d 0 14 14 13 14, 15 14 14 14 0 d From this it is evident that the divisible terms and the non-divisible terms are not restricted by a fixed law, although the two are equal in multitude; nevertheless, it is evident that the last term (2n+1) 2n (2n) 2n is always divisible by 4n + 1, because it has the factor (2n + 1) 2 4nn = 4n + 1. But nothing certain can be determined about the others. 9. Moreover, as to the validity of this proof, it should be carefully observed that that the proof to be examined is appropriate only if the number 4n + 1 is prime, as the nature of the theorem certainly demands it. For if 4n + 1 were not prime, it could not be asserted that it is a sum of two squares, nor that the form a 4n b 4n is necessarily divisible by it. Rather, the last conclusion which we announced would be false, and those differences of order 2n, which are 4 2n, are not divisible by 4n + 1. If however 4n + 1 were not a prime number but had factors which were less than 2n, then certainly the product 4 2n would contain those factors and for that reason would be divisible by 4n + 1. But if 4n + 1 is a prime number, then in fact one can assert that the product 4 2n is clearly not divisible by 4n + 1, because this product can be divided by no other numbers unless they arise as factors in the product. 10. Finally, because this proof to be set forth rests on this foundation, that of the series of powers 1, 2 2n, 3 2n, 4 2n, etc., the differences of order 2n are constant and all equal 4 2n; this can be seen more fully explained even if it is found soundly exposited here and there in books of analysis. Therefore, first it is to be noted that if the general term of any series or, in other words, that which corresponds to an indefinite exponent of x, is Ax m + Bx m 1 + Cx m 2 + Dx m 3 + Ex m 4 + etc., then this series is said to be of degree m because m is the exponent of the highest power of x. Then, if this general term is subtracted from the following A(x + 1) m + B(x + 1) m 1 + C(x + 1) m 2 + etc., the general term will produce a series of differences in which the highest power of x will be m 1 and therefore the series of differences will be of a lower degree, m 1. In a similar way, from the general term of the series of first differences is collected 4

a general term of the series of second differences which, again, has an even lower degree, m 2. 11. So if the given series is said to be of degree m, the series of first differences will be of degree m 1, the series of second differences will in turn be of degree m 2, the series of third differences of degree m 3, the series of fourth differences will be of degree m 4, and in general the series of nth order differences will be of degree m n. From this, the series of mth order differences will attain degree m m = 0, and therefore its general term, because the highest power of x is x 0 = 1, will be a constant quantity, and therefore all differences of order m will be equal to each other. Hence, for series of first degree in which the general term is Ax + B, the first differences will be equal to each other, while for series of second degree, which are restricted to the general term Ax 2 + Bx + C, the second differences are equal, and so in turn. 12. If, therefore, we consider any series of powers 1, 2 m, 3 m, 4 m, 5 m, 6 m, 7 m, 8 m, etc. for which the general term is x m or, in other words, that which corresponds to a base of x, the series of differences of order m will be constant from terms equal to each other. Now the general term of a series of first differences will be which, subtracted from the following (x + 1) m x m, (x + 2) m (x + 1) m will give the general term of the series of second differences, which will be (x + 2) m 2(x + 1) m + x m. Thus, in turn, the general term of the series of third differences will be (x + 3) m 3(x + 2) m + 3(x + 1) m x m ; and finally the general term of the series of differences of order m is (x+m) m m(x+m 1) m + (x+m 2) m (m 2) (x+m 3) m + etc., which, because they are constant quantities, will be the same for whatever number is substituted for x; therefore it will be either m m m + or (m + 1) m mm m + (m 2) m (m 1) m 5 (m 2) (m 3) m + etc. (m 2) (m 2) m + etc.,

where in the former formula we set x = 0 and, in the latter, x = 1. 13. Let us now consider the special cases of this series and let us ascend from the lowest powers to the highest. And first with m set equal to 1, the general term of the first differences of the series 1, 2, 3, 4, 5, 6, etc. will be either 1 1 1 0 1 = 1 or 2 1 1 1 1 = 1. If m = 2, the second differences of the series 1, 2 2, 3 2, 4 2, 5 2, etc. are either 2 2 2 1 2 or 3 2 2 2 2 + 1 1 2 ; but 2 2 2 1 2 = 2(2 1 1 1 1 ), from which these second differences are 2 1. Let m = 3; the third differences of the series 1, 2 3, 3 3, 4 3, 5 3, etc. will be but either 3 3 3 2 3 + 3 1 3 or 4 3 3 3 3 + 3 2 3 1 1 3 ; 3 3 3 2 3 + 3 1 3 = 3(3 2 2 2 2 + 1 1 2 ) = 3 2 1, because from the preceding case, 3 2 2 2 2 + 1 1 2 = 2 1. In a similar fashion, if m = 4, the fourth differences of the series 1, 2 4, 3 4, 4 4, 5 4, etc. will be either 4 4 4 3 4 + 6 2 4 4 1 4 or 5 4 4 4 4 + 6 3 4 4 2 4 + 1 1 4 ; but 4 4 4 3 4 + 6 2 4 4 1 4 = 4(4 3 3 3 3 + 3 2 3 1 1 3 ) = 4 3 2 1. 14. In order that this progression might be more easily observed, let the differences of order m of the series 1, 2 m, 3 m, 4 m, 5 m, etc. equal P, and let the differences of order m + 1 of the series 1, 2 m+1, 3 m+1, 4 m+1, 5 m+1, etc. equal Q. P = (m+1) m mm m + (m 1) m (m 2) (m 2) m + etc., Q = (m+1) m+1 (m+1)m m+1 + (m + 1)m (m 1) m+1 (m + 1) (m 2) m+1 + etc., where we expressed P in the former form and Q in the latter form. Here it is evident that the number of terms is equal in each expression, and individual 6

terms of the expression P are to the individual terms of the expression Q as 1 is to m + 1. For instance, (m + 1) m : (m + 1) m+1 = 1 : m + 1 mm m : (m + 1)m m+1 = 1 : m + 1 (m 1) m : (m + 1)m (m 1) m+1 (m 2) (m 2) m (m + 1) : (m 2) m+1 = 1 : m + 1 On account of this, P : Q = 1 : m + 1 and thus Q = (m + 1)P. 15. From this it is evident that for the series the differences 1, 2, 3, 4, 5, etc. first = 1, 1, 2 2, 3 2, 4 2, 5 2, etc. second = 1, 2 3, 3 3, 4 3, 5 3, etc. third = 1, 2 4, 3 4, 4 4, 5 4, etc. fourth= 4 1, 2 m, 3 m, 4 m, 5 m, etc. of order m = 4 m and therefore, 1, 2 2n, 3 2n, 4 2n, 5 2n, etc. of order 2n = 4 2n. And thus we have also proved that the differences of order 2n in the series of powers 1, 2 2n, 3 2n, 4 2n, 5 2n, etc. are not only constant but also equal to the product 1 2 3 4 2n, which we assumed in the proof of the proposed theorem. 3 Theorem 1 1. From the series of squares 1, 4, 9, 16, 25, etc., no numbers are divisible by the prime number p, unless their roots are divisible by the same number p. Proof 3 The Opera Omnia edition of the paper (Opera Omnia: Series 1, Volume 2, pp. 328-337) does not have the following material, but the material appeared in the original publication in Novi Commentarii academiae scientiarum Petropolitanae 5, 1760, pp. 3-13. 7

If for example some square number aa were divisible by the prime number p, because it consists of the factors a and a, it would be necessary for one or the other factor to be divisible by p. Therefore, the square number aa cannot be divisible by the prime number p unless its root a is divisible by p. Corollary 1 2. Thus, the square numbers arising from the roots p, 2p, 3p, 4p, etc., namely, pp, 4pp, 9pp, 16pp, etc. are divisible by the prime number p, and all other square numbers will not be divisible by the prime number p. 8