3 Euclidean Algorithm
3 Euclidean Algorithm
Algorithm
Definition 3.1
i. An integer n is even iff 2 divides n.
ii. An integer n is odd iff does not divide n.
Definition 3.2
An integer is prime iff and the only divisors of p are 1 and .
Definition 3.3
An integer n is composite iff and n is not prime.
Theorem 3.1 (Division Algorithm)
Let . Then, there exist unique integers and such that The
integers and are called the quotient and the remainder
respectively in the division of by .
Corollary 3.1
If and are integers with , then there exist unique integers
and such that
Exercises
Find and illustrating Corollary 3.1.
Definition 3.4
Let . The greatest common divisor of and denoted by is the
positive integer satisfying the following conditions.
i. If and , then
Theorem 3.2
If and are integers not both of which are zero, then the set
is precisely the set of all multiples of .
Definition 3.5
Two integers and not both of which are zero, are said to be
relatively prime iff .
Theorem 3.3
Let If , then there exists such that .
Theorem 3.4
Let If , then there exists such that .
Theorem 3.5
If , then .
Theorem 3.6
If and with , then .
Theorem 3.7
If with , then .
Theorem 3.8
Let iff
Then, .
Illustration:
1. Find .
2. Find such that .
Exercises
1. Show that if and are integers with then .
2. Prove that if such that and then
3. Find .
4. Find such that .