Let be two integers. There exits unique integers and with and
Uniqueness follows from the fact that implies
thus assuming we have
Let be two integers. The greatest common divisor of and is defined to be largest integer such that
divides both and . We write .
Since one can effectively , thought very inefficiently, compute by dividing by all values, starting at and ending at the least of and
Examples:
.
Suppose then .
If divides both and it also divides both and thus the two pair have exactly the same set of common divisors!
Let Using the Algorithm described in the proof below, there exists effectively computable integers and such that
If the theorem is trivial so for simplicity assume that . Again if divides the theorem is trivial so assume
with .
By the lemma above
If divides then and .
Otherwise
with
Again if divides , and and by substitution we have
or
By induction,we have
and
One finally argues that after at most steps since if it is the greatest common divisor.
Let , , and be integers, then the equation has integer solutions if and only if divides .
PROOF:.
If , any common divisor of and , in particular , must divide .
If and Let Then
Applying the Euclidean Algorithm,
Homework Due (Nov 3):
Estimate the number of divisions that it takes to compute using the Euclidean Algorithm .
hint: Assume that , and show
The Steps in the Euclidean Algorithm:
.
.
with or
Let then so can be computed in at most
steps. The first step being the computation of
Finally, in terms of and , can be computed in at most
Suppose is prime . Suppose divides then divides or divides .
Proof:
If does not divide , then . Thus there exists integers and , such that
Multiplying both sides of the equation by we have
Since, by assumption, divides both terms on the left hand side are divisible by , hence, so is the right hand side.
1. Let be a natural number then there is a unique set of prime numbers and natural numbers such that
2. Every fraction can be uniquely written as such that
1. is a straight forward induction argument using 21.5. Given 1., 2. is immediate
There does not exist a rational number such that
PROOF:.
Let . Applying 21.6.2. above we may assume Multiplying, we have . Since divides we conclude from 21.5 above that for some
Hence or . Hence as before . Thus .