3. SLIDESMANIA
Diophantine Equations
● A Diophantine Equation is a
polynomial equation that contains two or
more unknowns. Only integer solution
is acceptable by the Diophantine
equation.
● It is introduced by a mathematician
Diophantus of Alexandria.
4. SLIDESMANIA
Diophantine Equation falls into three
classes:
Those with no solutions
Those with only finitely many solutions
Those with infinitely many solutions
6. SLIDESMANIA
Congruence Method
Congruence Method provide a useful tool in determining the
number of solutions to a Diophantine Equation. It is applied to the
simplest Diophantine Equation, 𝒂𝒙 + 𝒃𝒚 = 𝒄, where a, b, and c
are nonzero integers. These method show that the solution has
either no solutions or infinitely many.
7. SLIDESMANIA
Where a, b, c ∊ Z
Goal: Find integer pairs (x, y)
that satisfy the equation.
𝒂𝒙 + 𝒃𝒚 = 𝒄
Existence of a solution:
Let 𝑑 = 𝑔𝑐𝑑 (𝑎, 𝑏)
𝒂𝒙 + 𝒃𝒚 = 𝒄
𝒉𝒂𝒔 𝒂 𝒔𝒐𝒍𝒖𝒕𝒊𝒐𝒏 𝒊𝒇 𝒂𝒏𝒅
𝒐𝒏𝒍𝒚 𝒊𝒇 𝒅 𝒅𝒊𝒗𝒊𝒅𝒆𝒔 𝒄.
9. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
2𝒙 + 𝟑𝒚 = 𝟔
Solution:
6𝒙 + 𝟗𝒚 = 𝟏𝟖
𝟐𝒙 ≡ 𝟔(𝒎𝒐𝒅 𝟑)
𝒙 ≡ 𝟑(𝒎𝒐𝒅 𝟑)
𝒙 = 𝟑 + 𝟑𝒌, 𝑘 ∊ 𝑍
Divides both sides of the equation by the gcd of 3
Convert the equation into congruence in the form of 𝐚𝐱 ≡ 𝒄 (𝒎𝒐𝒅 𝒃)
Divide both sides by 2
Congruence and equality, 𝒂 = 𝒃 + 𝒏𝒌 for some k integers.
General solution for x.
10. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
𝟔(𝟑 + 𝟑𝒌) + 𝟗𝒚 = 𝟏𝟖
Solution: 𝒙 = 𝟑 + 𝟑𝒌, 𝑘 ∊ 𝑍
6𝒙 + 𝟗𝒚 = 𝟏𝟖
𝟗𝒚 = 𝟏𝟖 − 𝟏𝟖 − 𝟏𝟖𝒌
𝟗𝒚 = −𝟏𝟖𝒌
y= −𝟐𝒌, 𝑘 ∊ 𝑍
Substitute 𝐱 = 𝟑 + 𝟑𝒌 to the original equation.
𝟏𝟖 + 𝟏𝟖𝒌 + 𝟗𝒚 = 𝟏𝟖
Solve for y.
Solve.
Divide both side by 9.
General solution for y.
11. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
Example 1:
Find the general
solution of the equation
6𝒙 + 𝟗𝒚 = 𝟏𝟖
Answer:
The general solution are
𝒚 = −𝟐𝒌, 𝑘 ∊ 𝑍
𝒙 = 𝟑 + 𝟑𝒌, 𝑘 ∊ 𝑍
15. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
4𝒙 + 𝟕𝒚 = 𝟏𝟐
Solution:
48𝒙 + 𝟖𝟒𝒚 = 𝟏𝟒𝟒
𝟒𝒙 ≡ 𝟏𝟐(𝒎𝒐𝒅 𝟕)
𝒙 ≡ 𝟑(𝒎𝒐𝒅 𝟕)
𝒙 = 𝟑 + 𝟕𝒌, 𝑘 ∊ 𝑍
Divides both sides of the equation by the gcd of 12
Convert the equation into congruence in the form of 𝐚𝐱 ≡ 𝒄 (𝒎𝒐𝒅 𝒃)
Divide both sides by 4
Congruence and equality, 𝒂 = 𝒃 + 𝒏𝒌 for some k integers.
General solution for x.
16. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
𝟒𝟖(𝟑 + 𝟕𝒌) + 𝟖𝟒𝒚 = 𝟏𝟒𝟒
Solution: 𝒙 = 𝟑 + 𝟕𝒌, 𝑘 ∊ 𝑍
48𝒙 + 𝟖𝟒𝒚 = 𝟏𝟒𝟒
𝟖𝟒𝒚 = 𝟏𝟒𝟒 − 𝟏𝟒𝟒 − 𝟑𝟑𝟔𝒌
𝟖𝟒𝒚 = −𝟑𝟑𝟔𝒌
𝒚 = −𝟒𝒌, 𝑘 ∊ 𝑍
Substitute 𝐱 = 𝟑 + 𝟕𝒌 to the original equation.
Solve
Solve for y and simplify.
.
Divide both side by 84.
General solution for y.
𝟏𝟒𝟒 + 𝟑𝟑𝟔𝒌 + 𝟖𝟒𝒚 = 𝟏𝟒𝟒
17. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
Example 2:
Find the general
solution of the equation
48𝒙 + 𝟖𝟒𝒚 = 𝟏𝟒𝟒
Answer:
The general solution are
y= −𝟒𝒌, 𝑘 ∊ 𝑍
x= 𝟑 + 𝟕𝒌, 𝑘 ∊ 𝑍
20. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
Example 3:
Using the congruence,
solve the linear
Diophantine equation
𝟗𝒙 + 𝟔𝒚 = 𝟐𝟓
Answer:
I𝒕 𝒉𝒂𝒔 𝒏𝒐 𝒔𝒐𝒍𝒖𝒕𝒊𝒐𝒏
23. SLIDESMANIA
― Irene M. Pepperberg
𝟓𝟎𝒙 + 𝟔𝟎𝒚 = 𝟑𝟎𝟎
𝟓𝒙 + 𝟔𝒚 = 𝟑𝟎
𝟓𝒙 ≡ 𝟑𝟎 (𝒎𝒐𝒅 𝟔)
Divides both sides of the equation by the gcd of 10
Convert the equation into congruence in the form of ax≡ 𝒄 (𝒎𝒐𝒅 𝒃)
𝟓𝒙 ≡ 𝟑𝟎 (𝒎𝒐𝒅 𝟔) Divide both sides by 5
𝒙 ≡ 𝟔 (𝒎𝒐𝒅 𝟔)
𝒙 = 𝟔 + 𝟔𝒌, 𝑘 ∊ 𝑍
Congruence and equality, 𝒂 = 𝒃 + 𝒏𝒌 for some k integers.
General solution for y.
24. SLIDESMANIA
― Irene M. Pepperberg
𝟓𝟎(𝟔 + 𝟔𝒌) + 𝟔𝟎𝒚 = 𝟑𝟎𝟎
𝟑𝟎𝟎 + 𝟑𝟎𝟎𝒌 + 𝟔𝟎𝒚 = 𝟑𝟎𝟎
𝟔𝟎𝒚 = 𝟑𝟎𝟎 − 𝟑𝟎𝟎 − 𝟑𝟎𝟎𝒌
𝟔𝟎𝒚 = −𝟑𝟎𝟎𝒌
𝒚 = −𝟓𝒌, 𝑘 ∊ 𝑍
𝒙 ≡ 𝟔 + 𝟔𝒌, 𝑘 ∊ 𝑍 Substitute 𝐱 = 𝟔 + 𝟔𝒌 to the original equation.
Solve
Solve for y.
Simplify.
Divide both side by 60.
General solution for x.
25. SLIDESMANIA
Solving Diophantine Equation Using
Congruence
Problem 1:
Find the general
solution of the equation
𝟓𝟎𝒙 + 𝟔𝟎𝒚 = 𝟑𝟎𝟎
Answer
𝒙 = 𝟔 + 𝟔𝒌, 𝑘 ∊ 𝑍
𝒚 = −𝟓𝒌, 𝑘 ∊ 𝑍
30. SLIDESMANIA
Pythagorean Triples
● Pythagorean triples are three positive integers
which satisfy the Pythagorean theorem.
• Pythagorean theorem states that in any right -
angle triangle, the square of the hypotenuse is
equal to the sum of the squares of the other two
sides of the right triangle.
31. SLIDESMANIA
Definition of a Right Triangle – a triangle with exactly
one right angle.
The hypotenuse is always across from the right angle
and is always the longest side.
hypotenuse
The legs are always the two sides that form the right
angle and are shorter than the hypotenuse.
legs
32. SLIDESMANIA
Pythagorean Theorem – In a right triangle, the
square of the hypotenuse is equal to the sum of
the squares of the two legs.
a
b
c
c2 = a2 + b2