You are on page 1of 24

NUMBER THEORY

LESSON 1.3: The Euclidean Algorithm and Diophantine Equation


The Euclidean Algorithm
The Euclidean Algorithm
Lemma
If a = qb + r , then gcd(a, b) = gcd(b, r ).

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,

gcd(a, b) · lcm(a, b) = ab.

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.

Divisibility Theory in the Integers khikz delloro 13


The Diophantine Equation ax + by = c
The Diophantine Equation

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

for integral values of t.


The Diophantine Equation
The Diophantine Equation
The Diophantine Equation
The Diophantine Equation
The Diophantine Equation
The Diophantine Equation
The Diophantine Equation
TRY THESE:
Try these:
1. Use the Euclidean Algorithm to obtain integers x and y
satisfying: gcd 56,72 = 56𝑥 + 72𝑦
2. Find 𝑙𝑐𝑚 143,227
3. Determine all solutions in the integers of the Diophantine
equation 56𝑥 + 72𝑦 = 40.
4. A certain number of sixes and nines is added to give a sum of
126; if the number of sixes and nines is interchanged, the
new sum is 114. How many of each were there originally?
TRY THESE:
TRY THESE:
TRY THESE:
TRY THESE:
TRY THESE:
TRY THESE:
TRY THESE:

You might also like