Section 2.2 The Greatest Common Divisor
It seems intuitive that of all the numbers dividing a number (the divisors of the number), one is biggest. We can carry that idea to two numbers.Definition 2.2.1. Common Divisors.
If we consider the various divisors of two numbers
Example 2.2.2.
What are all the common divisors of 6 and 10? What is their gcd?
Remark 2.2.3.
What is the greatest common divisor of zero and zero? By definition, there is none (or it is infinity?). Some authors (such as [E.2.1]) simply don't allow this case at all; others (like [E.2.4]) define it to be zero without further comment. As for computation, both SageMath and Wolfram Alpha apparently compute it to be zero (perhaps by The Euclidean Algorithm), while one online calculator throws an error.
This text chooses to remain agnostic on this point. However, ring theory and lattice theory both allow for an alternate definition which naturally yields zero as the answer; either consult an abstract algebra text, or see all the answers to this question at Mathematics StackExchange for some good fireside reading after you do your homework for this section.
Theorem 2.2.4. Characterizing the greatest common divisor.
Let
The largest integer
such that and (This is Definition 2.2.1.)The number achieved by applying the Euclidean algorithm (a repeated division algorithm) to
and (See Section 2.3.)The smallest positive number which can be written as
for some integers and (See Section 2.4 and Subsection 2.4.2.)