Normally, there are two ways to define the greatest common divisor.
Definition A:
iff
i. if
ii. if a is a common divisor of $\latex A$
Another equivalent definition B is:
iff is the largest common divisor.
Update:
OK, I think I made a mistake last night. In Definition A that GCD is the common divisor that divides all common divisors, it needs extra effort to prove such common divisor exists. Once this is done, the two definitions are trivially equivalent.
Theorem.
Proof. : Suppose q is a common divisor of A and , we have , hence . Contradiction.
: It is pretty hard. Actually I’m considering using the following theorem:
Theorem. Let be integers, not all zero. Then, there exist integers s.t.
I’ll update once I found the proof.
There are three ways to establish the GCD theory, according to by Chengdong Pan. They all depend on Long Division algorithm, but via different methods, i.e. least common multiplier of common divisors, Bezout’s identity and Euclidean Algorithm, respectively.
1. Least common multiplier of common divisors.
Lemma If , then
Proof.
Let , by Long Division, if , . Since , we have for all . Hence
Theorem , where are all common divisors of .
Proof.
By definition, L divides all common divisors of , so it satisfies Def A(i). By the lemma, it satisfies Def A(ii).
2. Bezout’s identity.
Theorem Suppose are integers s.t. .
(i)
(ii) There exists s.t.
Proof.
Since , is nonempty. Here denotes the set . By the minimum number principle, S has minumum, denotes as . Obviously if is a common divisor of , . Therefore it satisfies Def A(ii).
If there is s.t. doesn’t divide , by Long Division, , , but , contradiction. Hence is a common divisor of . Therefore .
3. Euclidean’s algorithm
Let be the set of all common divisors of , then by the Euclidean’s algorithm, . Hence .
Theorem
Proof. If , then by Euclidean’s algorithm. Hence if , then .
If , then is satisfied trivially.
By the theorem, we can derive the gcd of by multiple times of Euclidean algorithm.
By Chengdong Pan, “It is the ideas, conceptions, methods, structures of theory that are the most precious and important part of mathematics”. I’ll update once I have further understanding of the GCD theory.