Section 2.2 The Division Algorithm
An application of the Principle of Well-Ordering that we will use often is the division algorithm.
Proof.
This is a perfect example of the existence-and-uniqueness type of proof. We must first prove that the numbers and actually exist. Then we must show that if and are two other such numbers, then and
Existence of and .
Let
If then divides and we can let and If we can use the Well-Ordering Principle. We must first show that is nonempty. If then If then In either case By the Well-Ordering Principle, must have a smallest member, say Therefore, We now show that Suppose that Then
In this case we would have in the set But then which would contradict the fact that is the smallest member of So Since and so
Uniqueness of and .
Uniqueness of and Suppose there exist integers and such that
Then Assume that From the last equation we have therefore, must divide and This is possible only if Hence, and
Let and be integers. If for some integer we write An integer is called a common divisor of and if and The greatest common divisor of integers and is a positive integer such that is a common divisor of and and if is any other common divisor of and then We write for example, and We say that two integers and are relatively prime if
Theorem 2.10.
Proof.
Let
Clearly, the set is nonempty; hence, by the Well-Ordering Principle must have a smallest member, say We claim that Write where If then
which is in But this would contradict the fact that is the smallest member of Hence, and divides A similar argument shows that divides Therefore, is a common divisor of and
Suppose that is another common divisor of and and we want to show that If we let and then
So must divide Hence, must be the unique greatest common divisor of and
Corollary 2.11.
Subsection The Euclidean Algorithm
Among other things, Theorem 2.10 allows us to compute the greatest common divisor of two integers.
Example 2.12.
Reversing our steps, divides divides divides and divides Hence, divides both and If were another common divisor of and then would also have to divide Therefore,
To compute we are using repeated divisions to obtain a decreasing sequence of positive integers that is,
To find and such that we begin with this last equation and substitute results obtained from the previous equations:
The algorithm that we have just used to find the greatest common divisor of two integers and and to write as the linear combination of and is known as the Euclidean algorithm.
Subsection Prime Numbers
Let be an integer such that We say that is a prime number, or simply is prime, if the only positive numbers that divide are and itself. An integer that is not prime is said to be composite.
Lemma 2.13. Euclid.
Proof.
Suppose that does not divide We must show that Since there exist integers and such that So
Since divides both and itself, must divide
Theorem 2.14. Euclid.
There exist an infinite number of primes.
Proof.
We will prove this theorem by contradiction. Suppose that there are only a finite number of primes, say Let Then must be divisible by some for In this case, must divide which is a contradiction. Hence, either is prime or there exists an additional prime number that divides
Theorem 2.15. Fundamental Theorem of Arithmetic.
Proof.
Uniqueness.
To show uniqueness we will use induction on The theorem is certainly true for since in this case is prime. Now assume that the result holds for all integers such that and
where and By Lemma 2.13, for some and for some Since all of the ’s and ’s are prime, and Hence, since By the induction hypothesis,
has a unique factorization. Hence, and for
Existence.
To show existence, suppose that there is some integer that cannot be written as the product of primes. Let be the set of all such numbers. By the Principle of Well-Ordering, has a smallest number, say If the only positive factors of are and then is prime, which is a contradiction. Hence, where and Neither nor since is the smallest element in So
Therefore,
So which is a contradiction.
Subsection Historical Note
Prime numbers were first studied by the ancient Greeks. Two important results from antiquity are Euclid’s proof that an infinite number of primes exist and the Sieve of Eratosthenes, a method of computing all of the prime numbers less than a fixed positive integer One problem in number theory is to find a function such that is prime for each integer Pierre Fermat (1601?–1665) conjectured that was prime for all but later it was shown by Leonhard Euler (1707–1783) that
is a composite number. One of the many unproven conjectures about prime numbers is Goldbach’s Conjecture. In a letter to Euler in 1742, Christian Goldbach stated the conjecture that every even integer with the exception of seemed to be the sum of two primes: Although the conjecture has been verified for the numbers up through it has yet to be proven in general. Since prime numbers play an important role in public key cryptography, there is currently a great deal of interest in determining whether or not a large number is prime.