Lesson1 3-EuclideanAlgorithm&DiophantineEquation
Lesson1 3-EuclideanAlgorithm&DiophantineEquation
Theorem
If k > 0, then gcd(ka, kb) = kgcd(a, b).
Corollary
For any integer k ”= 0, gcd(ka, kb) = |k|gcd(a, b).
The Euclidean Algorithm
The Euclidean Algorithm
The Euclidean Algorithm
The Euclidean Algorithm
Definition
The least common multiple of two nonzero integers a and b, denoted
by lcm(a, b), is the positive integer m satisfying the following:
a. a|m and b|m.
b. If a|c and b|c, with c > 0, then m Æ c.
The Euclidean Algorithm
The Euclidean Algorithm
Theorem
For positive integers a and b,
Corollary
For any choice of positive integers a and b, lcm(a, b) = ab if and
only if gcd(a, b) = 1.
The Euclidean Algorithm
The Diophantine Equation ax + by = c
The Diophantine Equation
Theorem
The linear Diophantine equation ax + by = c has a solution if and
only if d|c, where d = gcd(a, b). If x0 , y0 is any particular solution of
this equation, then all other solutions are given by
3 4 3 4
b a
x = x0 + t y = y0 ≠ t
d d
where t is an arbitrary integer.
Corollary
If gcd(a, b) = 1 and if x0 , y0 is a particular solution of the linear
Diophantine equation ax + by = c, then all solutions are given by
x = x0 + bt y = y0 ≠ at