1.1.2. Greatest common divisor
This section is based on part of [BUR11, Sec. 2.3].
Proposition 1.1.2.1.
Let . Then if and only if has finitely many divisors.
Proof.
Let . Let be a divisor of and write with non-zero. Then and
since . Since there are only finitely many integers such that , the claim follows. For the converse, observe that every integer divides (Proposition 1.1.1.6(2)). ∎
The following definition is as fundamental as Definition 1.1.1.1.
Definition 1.1.2.2.
Let . A common divisor of and is an integer such that and . If and are not both zero, we define the greatest common divisor (gcd) of and to be
This is a well-defined integer by Proposition 1.1.1.6(1) and Proposition 1.1.2.1. If , we say that and are coprime.
Remark 1.1.2.3.
When considering the gcd of a pair of integers, we always assume that this is defined, that is, that the two integers are not both zero.
Example 1.1.2.4.
Not covered in the lecture We have
Similarly, since
we also have .
The greatest common divisor of a pair of integers has the following properties.
Proposition 1.1.2.5.
Let be not both zero. The following statements hold:
-
(1)
if .
-
(2)
.
-
(3)
.
-
(4)
.
Proof.
The first three statements are trivial. We prove (4). The equality follows from the fact that and have the same set of divisors (Proposition 1.1.1.6(7)). Finally, by what we just proved,
Remark 1.1.2.6.
It follows from the definition of the gcd that the gcd of a pair of numbers is always positive (since is always a common divisor). Moreover, the gcd of a pair of integers and does not change if we change the sign of either of them (compare with Example 1.1.2.4).
Remark 1.1.2.7.
In view of Remarks 1.1.1.7 and 1.1.2.6, many questions concerning divisibility can be reduced to the case of positive or non-negative integers. This approach is taken in many introductory books on number theory.
End of Lecture 1