Section 8.2 Prime Numbers and Prime Factorizations
Beginning Activity Beginning Activity 1: Exploring Examples where \(\boldsymbol{a}\) Divides \(\boldsymbol{b \cdot c}\)
1.
Find at least three different examples of nonzero integers \(a\text{,}\) \(b\text{,}\) and \(c\) such that \(a \mid \left( {bc} \right)\) but \(a\) does not divide \(b\) and \(a\) does not divide \(c\text{.}\) In each case, compute \(\gcd( {a, b} )\) and \(\gcd( {a, c} )\text{.}\)
2.
Find at least three different examples of nonzero integers \(a\text{,}\) \(b\text{,}\) and \(c\) such that \(\gcd( {a, b} ) = 1\) and \(a \mid ( {bc} )\text{.}\) In each example, is there any relation between the integers \(a\) and \(c\text{?}\)
3.
Formulate a conjecture based on your work in Exercise 1 and Exercise 2.
Beginning Activity Beginning Activity 2: Prime Factorizations
Recall that a natural number \(p\) is a prime number provided that it is greater than 1 and the only natural numbers that divide \(p\) are 1 and \(p\text{.}\) A natural number other than 1 that is not a prime number is a composite number. The number 1 is neither prime nor composite. (See Activity 8 from Section 2.4.)
1.
Give examples of four natural numbers that are prime and four natural numbers that are composite.
Theorem 4.11 in Section 4.2 states that every natural number greater than 1 is either a prime number or a product of prime numbers.
When a composite number is written as a product of prime numbers, we say that we have obtained a prime factorization of that composite number. For example, since \(60 = 2^2 \cdot 3 \cdot 5\text{,}\) we say that \(2^2 \cdot 3 \cdot 5\) is a prime factorization of 60. Write the number 40 as a product of prime numbers by first writing \(40 = 2 \cdot 20\) and then factoring 20 into a product of primes. Next, write the number 40 as a product of prime numbers by first writing \(40 = 5 \mspace{1mu}\cdot\mspace{1mu} 8\) and then factoring 8 into a product of primes. In Exercise 2, we used two different methods to obtain a prime factorization of 40. Did these methods produce the same prime factorization or different prime factorizations? Explain. Repeat Exercise 2 and Exercise 3 with 150. First, start with \(150 = 3 \cdot 50\text{,}\) and then start with \(150 = 5 \cdot 30\text{.}\)2.
3.
4.
Subsection Greatest Common Divisors and Linear Combinations
In Section 8.1, we introduced the concept of the greatest common divisor of two integers. We showed how the Euclidean Algorithm can be used to find the greatest common divisor of two integers, \(a\) and \(b\text{,}\) and also showed how to use the results of the Euclidean Algorithm to write the greatest common divisor of \(a\) and \(b\) as a linear combination of \(a\) and \(b\text{.}\)
In this section, we will use these results to help prove the so-called Fundamental Theorem of Arithmetic, which states that any natural number greater than 1 that is not prime can be written as product of primes in “essentially” only one way. This means that given two prime factorizations, the prime factors are exactly the same, and the only difference may be in the order in which the prime factors are written. We start with more results concerning greatest common divisors. We first prove Proposition 5.22, which was part of Activity 30 in Section 5.2 and Activity 47 in Section 8.1.
Proposition 5.22: Let a, b, and t be integers with \(t \ne 0\text{.}\) If \(t\) divides \(a\) and \(t\) divides \(b\text{,}\) then for all integers \(x\) and \(y\text{,}\) \(t\) divides \(\left( ax + by \right)\text{.}\) Let \(a\text{,}\) \(b\text{,}\) and \(t\) be integers with \(t \ne 0\text{,}\) and assume that \(t\) divides \(a\) and \(t\) divides \(b\text{.}\) We will prove that for all integers \(x\) and \(y\text{,}\) \(t\) divides \((ax + by)\text{.}\) So let \(x \in \mathbb{Z}\) and let \(y \in \mathbb{Z}\text{.}\) Since \(t\) divides \(a\text{,}\) there exists an integer \(m\) such that \(a = mt\) and since \(t\) divides \(b\text{,}\) there exists an integer \(n\) such that \(b = nt\text{.}\) Using substitution and algebra, we then see that Since \((mx + ny)\) is an integer, the last equation proves that \(t\) divides \(ax + by\) and this proves that for all integers \(x\) and \(y\text{,}\) \(t\) divides \((ax + by)\text{.}\)Proof.
We now let \(a, b \in \mathbb{Z}\text{,}\) not both 0, and let \(d = \gcd( {a, b} )\text{.}\) Theorem 8.10 states that \(d\) can be written as a linear combination of \(a\) and \(b\text{.}\) Now, since \(d \mid a\) and \(d \mid b\text{,}\) we can use the result of Proposition 5.22 to conclude that for all \(x, y \in \mathbb{Z}\text{,}\) \(d \mid \left( {ax + by} \right)\text{.}\) This means that \(d\) divides every linear combination of \(a\) and \(b\text{.}\) In addition, this means that \(d\) must be the smallest positive number that is a linear combination of \(a\) and \(b\text{.}\) We summarize these results in Theorem 8.11.
Theorem 8.11.
Let \(a, b \in \mathbb{Z}\text{,}\) not both 0.
The greatest common divisor, \(d\text{,}\) is a linear combination of \(a\) and \(b\text{.}\) That is, there exist integers \(m\) and \(n\) such that \(d = am + bn\text{.}\)
The greatest common divisor, \(d\text{,}\) divides every linear combination of \(a\) and \(b\text{.}\) That is, for all \(x, y \in \mathbb{Z}\) , \(d \mid \left( {ax + by} \right)\text{.}\)
The greatest common divisor, \(d\text{,}\) is the smallest positive number that is a linear combination of \(a\) and \(b\text{.}\)
Subsection Relatively Prime Integers
In Beginning Activity 1, we constructed several examples of integers \(a\text{,}\) \(b\text{,}\) and \(c\) such that \(a \mid \left( {bc} \right)\) but \(a\) does not divide \(b\) and \(a\) does not divide \(c\text{.}\) For each example, we observed that \(\gcd( {a, b} ) \ne 1\) and \(\gcd( {a, c} ) \ne 1\text{.}\)
We also constructed several examples where \(a \mid \left( {bc} \right)\) and \(\gcd( {a, b} ) = 1\text{.}\) In all of these cases, we noted that \(a\) divides \(c\text{.}\) Integers whose greatest common divisor is equal to 1 are given a special name.
Definition.
Two nonzero integers \(a\) and \(b\) are relatively prime provided that \(\gcd( {a, b} ) = 1\text{.}\)
Progress Check 8.12. Relatively Prime Integers.
(a)
Construct at least three different examples where \(p\) is a prime number, \(a \in \mathbb{Z}\) , and \(p \mid a\text{.}\) In each example, what is \(\gcd( {a, p} )\text{?}\) Based on these examples, formulate a conjecture about \(\gcd( {a, p} )\) when \(p \mid a\text{.}\)
If \(a, p \in \mathbb{Z}\text{,}\) \(p\) is prime, and \(p\) divides \(a\text{,}\) then \(\gcd ( {a, p} ) = p\text{.}\)
(b)
Construct at least three different examples where \(p\) is a prime number, \(a \in \mathbb{Z}\) , and \(p\) does not divide \(a\text{.}\) In each example, what is \(\gcd( {a, p} )\text{?}\) Based on these examples, formulate a conjecture about \(\gcd( {a, p} )\) when \(p\) does not divide \(a\text{.}\)
If \(a, p \in \mathbb{Z}\text{,}\) \(p\) is prime, and \(p\) does not divide \(a\text{,}\) then \(\gcd ( {a, p} ) = 1\text{.}\)
(c)
Give at least three different examples of integers \(a\) and \(b\) where \(a\) is not prime, \(b\) is not prime, and \(\gcd( {a, b} ) = 1\text{,}\) or explain why it is not possible to construct such examples.
Three examples are \(\gcd ( {4, 9} ) = 1\text{,}\) \(\gcd ( {15, 16} ) = 1\text{,}\) \(\gcd ( {8, 25} ) = 1\text{.}\)
Theorem 8.13.
Let \(a\) and \(b\) be nonzero integers, and let \(p\) be a prime number.
If \(a\) and \(b\) are relatively prime, then there exist integers \(m\) and \(n\) such that \(am + bn = 1\text{.}\) That is, 1 can be written as linear combination of \(a\) and \(b\text{.}\)
If \(p \mid a\text{,}\) then \(\gcd( {a, p} ) = p\text{.}\)
If \(p\) does not divide \(a\text{,}\) then \(\gcd( {a, p} ) = 1\text{.}\)
Item 1 of Theorem 8.13 is actually a corollary of Theorem 8.11. Item 2 and Item 3 could have been the conjectures you formulated in Progress Check 8.12. The proofs are included in Exercise 1.
Given nonzero integers \(a\) and \(b\text{,}\) we have seen that it is possible to use the Euclidean Algorithm to write their greatest common divisor as a linear combination of \(a\) and \(b\text{.}\) We have also seen that this can sometimes be a tedious, time-consuming process, which is why people have programmed computers to do this. Fortunately, in many proofs of number theory results, we do not actually have to construct this linear combination since simply knowing that it exists can be useful in proving results. This will be illustrated in the proof of Theorem 8.14, which is based on work in Beginning Activity 1.
Theorem 8.14.
Let \(a\text{,}\) \(b\) be nonzero integers and let \(c\) be an integer. If \(a\) and \(b\) are relatively prime and \(a \mid \left( {bc} \right)\text{,}\) then \(a \mid c\text{.}\)
The explorations in Beginning Activity 1 were related to this theorem. We will first explore the forward-backward process for the proof. The goal is to prove that \(a \mid c\text{.}\) A standard way to do this is to prove that there exists an integer \(q\) such that
Since we are given that \(a \mid \left( {bc} \right)\text{,}\) there exists an integer \(k\) such that
It may seem tempting to divide both sides of equation (70) by \(b\text{,}\) but if we do so, we run into problems with the fact that the integers are not closed under division. Instead, we look at the other part of the hypothesis, which is that \(a\) and \(b\) are relatively prime. This means that \(\gcd( {a, b} ) = 1\text{.}\) How can we use this? This means that \(a\) and \(b\) have no common factors except for 1. In light of equation (70) it seems reasonable that any factor of \(a\) must also be a factor of \(c\text{.}\) But how do we formalize this?
One conclusion that we can use is that since \(\gcd( {a, b} ) = 1\text{,}\) by Theorem 8.13, there exist integers \(m\) and \(n\) such that
We may consider solving equation (71) for \(b\) and substituting this into equation (70) The problem, again, is that in order to solve equation (71) for \(b\text{,}\) we need to divide by \(n\text{.}\)
Before doing anything else, we should look at the goal in equation (69) We need to introduce \(c\) into equation (71) One way to do this is to multiply both sides of equation (71) by \(c\text{.}\) (This keeps us in the system of integers since the integers are closed under multiplication.) This gives
Notice that the left side of equation (72) contains a term, \(bcn\text{,}\) that contains \(bc\text{.}\) This means that we can use equation (70) and substitute \(bc = ak\) in equation (72). After doing this, we can factor the left side of the equation to prove that \(a \mid c\text{.}\)
Progress Check 8.15. Completing the Proof of Theorem 8.14.
Write a complete proof of Theorem 8.14.
Proof.
Let \(a\text{,}\) \(b\text{,}\) and \(c\) be integers. Assume that \(a\) and \(b\) are relatively prime and \(a \mid ( {bc} )\text{.}\) We will prove that \(a\) divides \(c\text{.}\)
Since \(a\) divides \(bc\text{,}\) there exists an integer \(k\) such that
In addition, we are assuming that \(a\) and \(b\) are relatively prime and hence \(\gcd ( {a, b} ) = 1\text{.}\) So by Theorem 8.11, there exist integers \(m\) and \(n\) such that
We now multiply both sides of equation (74) by \(c\text{.}\) This gives
We can now use equation 1 to substitute \(bc = ak\) in equation (75) and obtain
If we now factor the left side of this last equation, we see that \(a( {cm + kn} ) = c\text{.}\) Since \(( {cm + kn} )\) is an integer, this proves that \(a\) divides \(c\text{.}\) Hence, we have proven that if \(a\) and \(b\) are relatively prime and \(a \mid ( {bc} )\text{,}\) then \(a \mid c\text{.}\)
Corollary 8.16.
Let \(a, b \in \mathbb{Z}\text{,}\) and let \(p\) be a prime number. If \(p \mid \left( {ab} \right)\text{,}\) then \(p \mid a\) or \(p \mid b\text{.}\)
Let \(p\) be a prime number, let \(n \in \mathbb{N}\text{,}\) and let \(a_1 ,a_2 , \ldots , a_n \in \mathbb{Z}\text{.}\) If \(p \mid \left( {a_1 a_2 \cdots a_n } \right)\text{,}\) then there exists a natural number \(k\) with \(1 \leq k \leq n\) such that \(p \mid a_k\text{.}\)
Item 1 of Corollary 8.16 is a corollary of Theorem 8.14. Item 2 is proved using mathematical induction. The basis step is the case where \(n = 1\text{,}\) and Item 1 is the case where \(n = 2\text{.}\) The proofs of these two results are included in Exercise 2 and Exercise 3.
Subsection Historical Note
Item 1 of Corollary 8.16 is known as Euclid's Lemma. Most people associate geometry with Euclid's Elements, but these books also contain many basic results in number theory. Many of the results that are contained in this section appeared in Euclid's Elements.
Subsection Prime Numbers and Prime Factorizations
We are now ready to prove the Fundamental Theorem of Arithmetic. The first part of this theorem was proved in Theorem 4.11 in Section 4.2. This theorem states that each natural number greater than 1 is either a prime number or is a product of prime numbers. Before we state the Fundamental Theorem of Arithmetic, we will discuss some notational conventions that will help us with the proof. We start with an example.
We will use \(n = 120\text{.}\) Since \(5 \mid 120\text{,}\) we can write \(120 = 5 \cdot 24\text{.}\) In addition, we can factor 24 as \(24 = 2 \cdot 2 \cdot 2 \cdot 3\text{.}\) So we can write
This is a prime factorization of 120, but it is not the way we usually write this factorization. Most often, we will write the prime number factors in ascending order. So we write
Now, let \(n \in \mathbb{N}\text{.}\) To write the prime factorization of \(n\) with the prime factors in ascending order requires that if we write \(n = p_1 p_2 \cdots p_r\text{,}\) where \(p_1 , p_2 , \ldots, p_r\) are prime numbers, we will have \(p_1 \leq p_2 \leq \cdots \leq p_r\text{.}\)
Theorem 8.17. The Fundamental Theorem of Arithmetic.
Each natural number greater than 1 is either a prime number or is a product of prime numbers.
-
Let \(n \in \mathbb{N}\) with \(n > 1\text{.}\) Assume that
\begin{equation*} n = p_1 p_2 \cdots p_r \text{ and that } n = q_1 q_2 \cdots q_s\text{,} \end{equation*}where \(p_1 , p_2 , \ldots, p_r\) and \(q_1 , q_2 , \ldots, q_s\) are primes with \(p_1 \leq p_2 \leq \cdots \leq p_r\) and \(q_1 \leq q_2 \leq \cdots \leq q_s\text{.}\) Then \(r = s\text{,}\) and for each \(j\) from 1 to r, \(p_j = q_j\text{.}\)
Proof.
The first part of this theorem was proved in Theorem 4.11. We will prove the second part of the theorem by induction on \(n\) using the Second Principle of Mathematical Induction. (See Section 4.2.) For each natural number \(n\) with \(n > 1\text{,}\) let \(P( n )\) be
If \(n = p_1 p_2 \cdots p_r\) and \(n = q_1 q_2 \cdots q_s\text{,}\) where \(p_1 , p_2 , \ldots, p_r\) and \(q_1 , q_2 , \ldots, q_s\) are primes with \(p_1 \leq p_2 \leq \cdots \leq p_r\) and \(q_1 \leq q_2 \leq \cdots \leq q_s\text{,}\) then \(r = s\text{,}\) and for each \(j\) from 1 to \(r\text{,}\) \(p_j = q_j\text{.}\)
For the basis step, we notice that since 2 is a prime number, its only factorization is \(2 = 1 \cdot 2\text{.}\) This means that the only equation of the form \(2 = p_1 p_2 \cdots p_r\text{,}\) where \(p_1 , p_2 , \ldots, p_r\) are prime numbers, is the case where \(r = 1\) and \(p_1 = 2\text{.}\) This proves that \(P( 2 )\) is true.
For the inductive step, let \(k \in \mathbb{N}\) with \(k \geq 2\text{.}\) We will assume that \(P( 2 ), P( 3 ), \ldots , P( k )\) are true. The goal now is to prove that \(P( {k + 1} )\) is true. To prove this, we assume that \((k + 1)\) has two prime factorizations and then prove that these prime factorizations are the same. So we assume that
\(k + 1 = p_1 p_2 \cdots p_r\) and that \(k + 1 = q_1 q_2 \cdots q_s\text{,}\) where \(p_1 , p_2 , \ldots, p_r\) and \(q_1 , q_2 , \ldots, q_s\) are primes with \(p_1 \leq p_2 \leq \cdots \leq p_r\) and \(q_1 \leq q_2 \leq \cdots \leq q_s\text{.}\)We must now prove that \(r = s\text{,}\) and for each \(j\) from 1 to \(r\text{,}\) \(p_j = q_j\text{.}\) We can break our proof into two cases: (1) \(p_1 \leq q_1\text{;}\) and (2) \(q_1 \leq p_1\text{.}\) Since one of these must be true, and since the proofs will be similar, we can assume, without loss of generality, that \(p_1 \leq q_1\text{.}\)
Since \(k + 1 = p_1 p_2 \cdots p_r\text{,}\) we know that \(p_1 \mid \left( {k + 1} \right)\text{,}\) and hence we may conclude that \(p_1 \mid \left( {q_1 q_2 \cdots q_s } \right)\text{.}\) We now use Corollary 8.16 to conclude that there exists a \(j\) with \(1 \leq j \leq s\) such that \(p_1 \mid q_j\text{.}\) Since \(p_1\) and \(q_j\) are primes, we conclude that
We have also assumed that \(q_1 \leq q_j\) for all \(j\) and, hence, we know that \(q_1 \leq p_1\text{.}\) However, we have also assumed that \(p_1 \leq q_1\text{.}\) Hence,
We now use this and the fact that \(k + 1 = p_1 p_2 \cdots p_r = q_1 q_2 \cdots q_s\) to conclude that
The product in the previous equation is less than \(k + 1\text{.}\) Hence, we can apply our induction hypothesis to these factorizations and conclude that \(r = s\text{,}\) and for each \(j\) from 2 to \(r\text{,}\) \(p_j = q_j\text{.}\)
This completes the proof that if \(P( 2 ), P( 3 ), \ldots , P( k )\) are true, then \(P( {k + 1} )\) is true. Hence, by the Second Principle of Mathematical Induction, we conclude that \(P( n )\) is true for all \(n \in \mathbb{N}\) with \(n \geq 2\text{.}\) This completes the proof of the theorem.
Note: We often shorten the result of the Fundamental Theorem of Arithmetic by simply saying that each natural number greater than one that is not a prime has a unique factorization as a product of primes. This simply means that if \(n \in \mathbb{N}\text{,}\) \(n > 1\text{,}\) and \(n\) is not prime, then no matter how we choose to factor \(n\) into a product of primes, we will always have the same prime factors. The only difference may be in the order in which we write the prime factors.
Subsection Further Results and Conjectures about Prime Numbers
-
The Number of Prime Numbers.
Prime numbers have fascinated mathematicians for centuries. For example, we can easily start writing a list of prime numbers in ascending order. Following is a list of the prime numbers less than 100.
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97
This list contains the first 25 prime numbers. Does this list ever stop? The question was answered in Euclid's Elements, and the result is stated in Theorem 8.18. The proof of this theorem is considered to be one of the classical proofs by contradiction.
Theorem 8.18.
There are infinitely many prime numbers.
Proof.
We will use a proof by contradiction. We assume that there are only finitely many primes, and let
\begin{equation*} p_1 , p_2 , \ldots , p_m \end{equation*}be the list of all the primes. Let
\begin{equation} M = p_1 p_2 \cdots p_m + 1\text{.}\tag{76} \end{equation}Notice that \(M \ne 1\text{.}\) So \(M\) is either a prime number or, by the Fundamental Theorem of Arithmetic, \(M\) is a product of prime numbers. In either case, \(M\) has a factor that is a prime number. Since we have listed all the prime numbers, this means that there exists a natural number \(j\) with \(1 \leq j \leq m\) such that \(p_j \mid M\text{.}\) Now, we can rewrite equation (76) as follows:
\begin{equation} 1 = M - p_1 p_2 \cdots p_m\text{.}\tag{77} \end{equation}We have proved \(p_j \mid M\text{,}\) and since \(p_j\) is one of the prime factors of \(p_1 p_2 \cdots p_m\text{,}\) we can also conclude that \(p_j \mid \left( {p_1 p_2 \cdots p_m } \right)\text{.}\) Since \(p_j\) divides both of the terms on the right side of equation (77), we can use this equation to conclude that \(p_j\) divides 1. This is a contradiction since a prime number is greater than 1 and cannot divide 1. Hence, our assumption that there are only finitely many primes is false, and so there must be infinitely many primes.
-
The Distribution of Prime Numbers.
There are infinitely many primes, but when we write a list of the prime numbers, we can see some long sequences of consecutive natural numbers that contain no prime numbers. For example, there are no prime numbers between 113 and 127. The following theorem shows that there exist arbitrarily long sequences of consecutive natural numbers containing no prime numbers. A guided proof of this theorem is included in Exercise 15.
Theorem 8.19.
For any natural number \(n\text{,}\) there exist at least \(n\) consecutive natural numbers that are composite numbers.
There are many unanswered questions about prime numbers, two of which will now be discussed.
-
The Twin Prime Conjecture.
By looking at the list of the first 25 prime numbers, we see several cases where consecutive prime numbers differ by 2. Examples are: 3 and 5; 11 and 13; 17 and 19; 29 and 31. Such pairs of prime numbers are said to be twin primes. How many twin primes exist? The answer is not known. The Twin Prime Conjecture states that there are infinitely many twin primes. As of June 25, 2010, this is still a conjecture as it has not been proved or disproved. For some interesting information on prime numbers, visit the Web site The Prime Pages 8 where there is a link to The Largest Known Primes Web site. According to information at this site as of June 25, 2010, the largest known twin primes are
\begin{equation*} \left( 65516468355 \times 2^{333333} - 1 \right) \text{ and } \left( 65516468355 \times 2^{333333} + 1 \right)\text{.} \end{equation*}Each of these prime numbers contains 100355 digits.
-
Goldbach's Conjecture.
Given an even natural number, is it possible to write it as a sum of two prime numbers? For example,
\begin{align*} 4 \amp = 2 + 2 \amp 6 \amp = 3 + 3 \amp 8 \amp = 5+3\\ 78 \amp = 37 + 41 \amp 90 \amp = 43 + 47 \amp 138 \amp = 67 + 71 \end{align*}One of the most famous unsolved problems in mathematics is a conjecture made by Christian Goldbach in a letter to Leonhard Euler in 1742. The conjecture, now known as Goldbach's Conjecture, is as follows:
Every even integer greater than 2 can be expressed as the sum of two (not necessarily distinct) prime numbers.
As of June 25, 2010, it is not known if this conjecture is true or false, although most mathematicians believe it to be true.
Exercises Exercises
1.
Prove the second and third parts of Theorem 8.13.
(a)
Let \(a\) be a nonzero integer, and let \(p\) be a prime number. If \(p \mid a\text{,}\) then \(\gcd( {a, p} ) = p\text{.}\)
Use the fact that the only natural number divisors of a prime number \(p\) are 1 and \(p\text{.}\)
(b)
Let \(a\) be a nonzero integer, and let \(p\) be a prime number. If \(p\) does not divide \(a\text{,}\) then \(\gcd( {a, p} ) = 1\text{.}\)
Use the fact that the only natural number divisors of a prime number \(p\) are 1 and \(p\text{.}\)
2.
Prove the first part of Corollary 8.16. Let \(a, b \in \mathbb{Z}\text{,}\) and let \(p\) be a prime number. If \(p \mid \left( {ab} \right)\text{,}\) then \(p \mid a\) or \(p \mid b\text{.}\)
Consider two cases: (1) \(p \mid a\text{;}\) and (2) \(p\) does not divide \(a\text{.}\)
Use cases: (1) \(p\) divides \(a\text{;}\) (2) \(p\) does not divide \(a\text{.}\) In the first case, the conclusion is automatically true. For the second case, use the fact that \(\gcd ( p, a ) = 1\) and so we can use Theorem 8.14 to conclude that \(p\) divides \(b\text{.}\) Another option is to write the number 1 as a linear combination of \(a\) and \(p\) and then multiply both sides of the equation by \(b\text{.}\)
3.
Use mathematical induction to prove the second part of Corollary 8.16. Let \(p\) be a prime number, let \(n \in \mathbb{N}\text{,}\) and let \(a_1 ,a_2 , \ldots , a_n \in \mathbb{Z}\text{.}\) If \(p \mid \left( {a_1 a_2 \cdots a_n } \right)\text{,}\) then there exists a \(k \in \mathbb{N}\) with \(1 \leq k \leq n\) such that \(p \mid a_k\text{.}\)
A hint for the inductive step: Write \(p \mid ( {a_1 a_2 \cdots a_m } )a_{m + 1}\text{.}\) Then look at two cases: (1) \(p \mid a_{m + 1}\text{;}\) (2) \(p\) does not divide \(a_{m + 1}\text{.}\)
4.
Let \(a\) and \(b\) be nonzero integers.
(a)
If there exist integers \(x\) and \(y\) such that \(ax + by = 1\text{,}\) what conclusion can be made about \(\gcd( {a, b} )\text{?}\) Explain.
\(\gcd ( a, b ) = 1\text{.}\) Why?
(b)
If there exist integers \(x\) and \(y\) such that \(ax + by = 2\text{,}\) what conclusion can be made about \(\gcd( {a, b} )\text{?}\) Explain.
\(\gcd ( a, b ) = 1\) or \(\gcd ( a, b ) = 2\text{.}\) Why?
5.
Let \(a \in \Z\text{.}\)
(a)
What is \(\gcd( {a, a + 1} )\text{?}\) That is, what is the greatest common divisor of two consecutive integers? Justify your conclusion. \hint Exercise 4 might be helpful.
(b)
What conclusion can be made about \(\gcd( {a, a + 2} )\text{?}\) That is, what conclusion can be made about the greatest common divisor of two integers that differ by 2? Justify your conclusion.
6.
Let \(a \in \Z\text{.}\)
(a)
What conclusion can be made about \(\gcd( {a, a + 3} )\text{?}\) That is, what conclusion can be made about the greatest common divisor of two integers that differ by 3? Justify your conclusion.
(b)
What conclusion can be made about \(\gcd( {a, a + 4} )\text{?}\) That is, what conclusion can be made about the greatest common divisor of two integers that differ by 4? Justify your conclusion.
7.
Complete the following.
(a)
Let \(a = 16\) and \(b = 28\text{.}\) Determine the value of \(d = \gcd( a, b )\text{,}\) and then determine the value of \(\gcd \!\left( {\dfrac{a}{d}, \dfrac{b}{d}} \right )\text{.}\)
\(\gcd \left( 16, 28 \right) = 4\text{.}\) Also, \(\dfrac{16}{4} = 4\text{,}\) \(\dfrac{28}{4} = 7\text{,}\) and \(\gcd \left( 4, 7 \right) = 1\text{.}\)
(b)
Repeat Task 7.a with \(a = 10\) and \(b = 45\text{.}\)
\(\gcd \left( 10, 45 \right) = 5\text{.}\) Also, \(\dfrac{10}{5} = 2\text{,}\) \(\dfrac{45}{5} = 9\text{,}\) and \(\gcd \left( 2, 9 \right) = 1\text{.}\)
(c)
Let \(a, b \in \mathbb{Z}\text{,}\) not both equal to 0, and let \(d = \gcd( a, b )\text{.}\) Explain why \(\dfrac{a}{d}\) and \(\dfrac{b}{d}\) are integers. Then prove that \(\gcd \!\left( {\dfrac{a}{d}, \dfrac{b}{d}} \right ) = 1\text{.}\)
This says that if you divide both \(a\) and \(b\) by their greatest common divisor, the result will be two relatively prime integers.
Start by writing \(d\) as a linear combination of \(a\) and \(b\text{.}\)
8.
Are the following propositions true or false? Justify your conclusions.
(a)
For all integers \(a, b, \text{ and } c\text{,}\) if \(a \mid c\) and \(b \mid c\text{,}\) then \(\left( {ab} \right) \mid c\text{.}\)
(b)
For all integers \(a, b, \text{ and } c\text{,}\) if \(a \mid c\text{,}\) \(b \mid c\) and \(\gcd( {a, b} ) = 1\text{,}\) then \(( {ab} ) \mid c\text{.}\)
9.
In Exercise 17 in Section 3.5, it was proved that if \(n\) is an odd integer, then \(8 \mid \left( n^2 - 1 \right)\text{.}\) (This result was also proved in Exercise 19 in Section 7.4.) Now, prove the following proposition:
If \(n\) is an odd integer and 3 does not divide \(n\text{,}\) then \(24 \mid \left( n^2 - 1 \right)\text{.}\)
Task 8.b of Exercise 8 can be helpful.
10.
Prove the following propositions. Use mathematical induction for Task 10.b
(a)
For all \(a, b, c \in \mathbb{Z}\text{,}\) \(\gcd(a, bc) = 1\) if and only if \(\gcd( {a, b} ) = 1\) and \(\gcd( {a, c} ) = 1\text{.}\)
(b)
Let \(n \in \mathbb{N}\) and let \(a, b_1 , b_2 , \ldots , b_n \in \mathbb{Z}\text{.}\) If \(\gcd \!\left( {a, b_i } \right) = 1\) for all \(i \in \mathbb{N}\) with \(1 \leq i \leq n\text{,}\) then \(\gcd \!\left( {a, b_1 b_2 \cdots b_n } \right) = 1\text{.}\)
11.
Is the following proposition true or false? Justify your conclusion.
For all integers \(a, b, \text{ and } c\text{,}\) if \(\gcd( {a, b} ) = 1\) and \(c \mid \left( {a + b} \right)\text{,}\) then \(\gcd( {a, c} ) = 1\) and \(\gcd( {b, c} ) = 1\text{.}\)
The statement is true. Start of a proof: If \(\gcd ( {a, b} ) = 1\) and \(c \mid ( {a + b} )\text{,}\) then there exist integers \(x\) and \(y\) such that \(ax + by = 1\) and there exists an integer \(m\) such that \(a + b = cm\text{.}\)
12.
Is the following proposition true or false? Justify your conclusion.
If \(n \in \mathbb{N}\text{,}\) then \(\gcd( {5n + 2, 12n + 5} ) = 1\text{.}\)
13.
Let \(y \in \mathbb{N}\text{.}\) Use the Fundamental Theorem of Arithmetic to prove that there exists an odd natural number \(x\) and a nonnegative integer \(k\) such that \(y = 2^k x\text{.}\)
14.
Complete the following.
(a)
Determine five different primes that are congruent to 3 modulo 4.
(b)
Prove that there are infinitely many primes that are congruent to 3 modulo 4.
15.
Let \(n \in \N\text{.}\)
(a)
Prove that 2 divides \(\left[ {\left( {n + 1} \right)! + 2} \right]\text{.}\)
(b)
Prove that 3 divides \(\left[ {\left( {n + 1} \right)! + 3} \right]\text{.}\)
(c)
Prove that for each \(k \in \mathbb{N}\) with \(2 \leq k \leq \left( {n + 1} \right)\text{,}\) \(k\) divides \(\left[ {\left( {n + 1} \right)! + k} \right]\text{.}\)
(d)
Use the result of Task 15.c to prove that for each \(n \in \mathbb{N}\text{,}\) there exist at least \(n\) consecutive composite natural numbers.
16.
The Twin Prime Conjecture states that there are infinitely many twin primes, but it is not known if this conjecture is true or false. The answers to the following questions, however, can be determined.
(a)
How many pairs of primes \(p\) and \(q\) exist where \(q - p = 3\text{?}\) That is, how many pairs of primes are there that differ by 3? Prove that your answer is correct. (One such pair is 2 and 5.)
(b)
How many triplets of primes of the form \(p\text{,}\) \(p+2\text{,}\) and \(p+4\) are there? That is, how many triplets of primes exist where each prime is 2 more than the preceding prime? Prove that your answer is correct. Notice that one such triplet is 3, 5, and 7.
Try setting up cases using congruence modulo 3.
17.
Prove the following proposition:
Let \(n \in \mathbb{N}\text{.}\) For each \(a \in \mathbb{Z}\text{,}\) if \(\gcd( {a, n} ) = 1\text{,}\) then for every \(b \in \mathbb{Z}\text{,}\) there exists an \(x \in \mathbb{Z}\) such that \(ax \equiv b \pmod n\text{.}\)
One way is to start by writing 1 as a linear combination of \(a\) and \(n\text{.}\)
18.
Prove the following proposition:
For all natural numbers \(m\) and \(n\text{,}\) if \(m\) and \(n\) are twin primes other than the pair 3 and 5, then 36 divides \(mn + 1\) and \(mn + 1\) is a perfect square.
Look at several examples of twin primes. What do you notice about the number that is between the two twin primes? Set up cases based on this observation.
Activity 48. Square Roots and Irrational Numbers.
In Chapter 3, we proved that some square roots (such as \(\sqrt{2}\) and \(\sqrt{3}\)) are irrational numbers. In this activity, we will use the Fundamental Theorem of Arithmetic to prove that if a natural number is not a perfect square, then its square root is an irrational number.
(a)
Let \(n\) be a natural number. Use the Fundamental Theorem of Arithmetic to explain why if \(n\) is composite, then there exist distinct prime numbers \(p_1, p_2, \ldots, p_r\) and natural numbers \(\alpha_1, \alpha_2, \ldots, \alpha_r\) such that
Using \(r = 1\) and \(\alpha_1 = 1\) for a prime number, explain why we can write any natural number greater than one in the form given in equation (78).
(b)
A natural number \(b\) is a perfect square if and only if there exists a natural number \(a\) such that \(b = a^2\text{.}\) Explain why 36, 400, and 15876 are perfect squares. Then determine the prime factorization of these perfect squares. What do you notice about these prime factorizations?
(c)
Let \(n\) be a natural number written in the form given in equation (78) in Task 48.a Prove that \(n\) is a perfect square if and only if for each natural number \(k\) with \(1 \leq k \leq r\text{,}\) \(\alpha_k\) is even.
(d)
Prove that for all natural numbers \(n\text{,}\) if \(n\) is not a perfect square, then \(\sqrt{n}\) is an irrational number.
Use a proof by contradiction.
primes.utm.edu/