Professional Documents
Culture Documents
Integer Divisibility: Lecture 5 (Out of Seven)
Integer Divisibility: Lecture 5 (Out of Seven)
Adamchik 1
Integer Divisibility
Victor Adamchik
Fall of 2005
Plan
1. Introduction to Diophantine Equations
2. Linear Diophantine Equations
3. Positive solutions to LDE
Introduction
Definition. Let P x, y, ... is a polynomial with integer coefficients in one or more variables. A
Diophantine equation is an algebraic equation
P x, y, z, ... 0
For example,
2x 3y 11
7 x2 5 y2 2x 4y 11 0
y3 x3 z3
The problem to be solved is to determine whether or not a given Diophantine equation has solu-
tions in the domain of integer numbers.
In 1900 Hilbert proposed 23 most important unsolved problems of 20th century. His 10th problem
was about solvability a general Diophantine equation. Hilbert asked for a universal method of
solving all Diophantine equations.
V. Adamchik 21-127: Concepts of Mathematics
1946. Turing invented Universal Turing Machine and discovered basic unsolvable problems
Theorem (Y. Matiyasevich) There is no algorithm which, for a given arbitrary Diophantine equa-
tion, would tell whether the equation has a solution or not.
By the way, Goldbach's conjecture (which was mentioned a few lectures back) is Hilbert's 8th
problem.
ax by c
It is not obvious that all such equations solvable. For example, the equation
2x 2y 1
Some linear Diophantine equations have finite number of solutions, for example
2x 4
Thereom.
The linear equation a, b, c
ax by c
Proof.
)
gcd a, b a gcd a, b b
gcd a, b xa yb gcd a, b c
Given
gcd a, b c z , c gcd a, b z
x1 , y1 , gcd a, b x1 a y1 b.
Multiply this by z:
z gcd a, b a x1 z b y1 z
c a x1 z b y1 z
a n b m gcd a, b
Multiply this by c
a n c b m c gcd a, b c
Divide it by gcd
n c m c
a b c
gcd a, b gcd a, b
V. Adamchik 21-127: Concepts of Mathematics
ax by c
n c m c
x0 ; y0
gcd a, b gcd a, b
56 x 72 y 40
GCD 56, 72 8 4 56 3 72
4 40 3 40
x0 ; y0
8 8
x0 20; y0 15
By the extended Euclidean algorithm we find gcd and such n and m that
gcd a, b a n b m
gcd a, b c a n c b m c
gcd a, b c a n c b m c a b k a b k
a nc bk b mc ak gcd a, b c
nc bk mc ak
a b c
gcd a, b gcd a, b
It can be rewritten as
nc bk mc ak
c a b
gcd a, b gcd a, b gcd a, b gcd a, b
or
b k a k
c a x0 b y0
gcd a, b gcd a, b
k 0, 1, 2, ...
bk ak
x x0 y y0
gcd a, b gcd a, b
k 0, 1, 2, ...
56 x 72 y 40
GCD 56, 72 8 4 56 3 72
nc bk
x
gcd a, b gcd a, b
mc ak
y
gcd a, b gcd a, b
Hence
4 40 72 k
x 20 9 k
8 8
V. Adamchik 21-127: Concepts of Mathematics
3 40 56 k
y 15 7 k
8 8
nc bk
x
gcd a, b gcd a, b
mc ak
y
gcd a, b gcd a, b
nc bk 0
mc ak 0
To find out how many positive solutions a given equation has let us consider two cases
1. ax by c, gcd a, b 1, a, b 0
2. ax by c, gcd a, b 1, a, b 0
It follows that in the first case, the equation has a finite number of solutions
nc mc
k
b a
nc b k 0
mc a k 0
4x 7y 117
Solution.
V. Adamchik 7
GCD 4, 7 1 2 4 1 7
The number of solutions in positive integers can be determined from the system
nc bk 0
mc ak 0
2 117 7 k 0
1 117 4 k 0
This gives
2 117 117
k
7 4
3x 6y 5z 7
GCD 3, 6 x 2y 5z 7
Let
w x 2y
3w 5z 7
w 2 7 5k
z 1 7 3k
since
V. Adamchik 21-127: Concepts of Mathematics
GCD 3, 5 1 2 3 1 5
x 2y 14 5k
x 1 14 5k 2 l
y 0 14 5k 1 l
x 5k 2l 14
y l
z 7 3k
where
k, l 0, 1, 2, ...