Theorem 2
If a | b and b is not 0, then |a| is smaller
than or equal to |b|.
Proof. If a | b and b is not
zero, there exists and integer c with |c| > 0 such that
ac=b. But then |b|=|a|*|c| is not
smaller than |a|.
Corollary 1
If a and b are positive integers and a | b and
b | a, then a=b.
Theorem 3
If a and b are not both zero and if d=(a,b),
then d is the least element in the set of all positive integers of
the form ax+by.
Proof. Let C be the set of all positive integers
of the
form ax+by. By hypothesis, at least one of a,b is different from
zero. Suppose a is nonzero. If a > 0, then a is a
member of C and if a < 0, -a is a member of C.
Therefore, C is not empty and so, by the well-ordering principle,
C must have a least element. Let
There exist integers q and r with 0 <= r < e such that a=eq+r. Thus,
Theorem 4
d=(a,b) if and only if d > 0, d | a,
d | b, and f | d for every common divisor of
a and b.
Proof. We assume that a and b are not
both zero.
(i) Suppose, first, that d=(a,b). Then d | a
and d | b, and by Theorem 3,
d=ax+by > 0 for
some integers x and y. But then, if f | a and
f | b, then f | d by Theorem
1(v).
(ii) Conversely, suppose d > 0, d | a,
d | b, and f | d for every common divisor
f of a and b. Then d is a common divisor of
a and b and, by Theorem 2,
|f| does not exceed d. Thus, d=(a,b) by
Definition 1.