Pages

Showing posts with label Diophantine equation. Show all posts
Showing posts with label Diophantine equation. Show all posts

How to construct a regular polygon with 15 sides


To feed your curiosity, today we will look at a compass and straightedge construction of the regular polygon with 15 sides and we will show that there is a connection between this construction problem with the measuring liquid puzzle that we have learned from our previous post.

Measuring liquid puzzle



Today we will look at a brainteaser puzzle: "how to measure out exactly 1 liter of water using a 3-liter jug and a 5-liter jug." We will analyse this puzzle to see that, despite its innocent look, this puzzle has a close connection with the linear Diophantine equation.


Euclidean algorithm


In previous post, we have learned about Bézout's Lemma. Today, we will learn about Euclidean algorithm. This algorithm is used to determine the coefficients in the Bézout's equation.


Let us recall Bézout's lemma. 
Bézout's Lemma. Let $a$ and $b$ be two integers and $d$ their greatest common divisor. Then there exist two integers $x$ and $y$ such that $$d = a ~x + b ~y.$$


We use Euclidean algorithm to calculate the greatest common divisor $d$ of the two numbers $a$ and $b$, and determine the two values of $x$ and $y$ in Bézout's equation $$d = a ~x + b ~y.$$

We will see that Euclidean algorithm is motivated from a very simple and natural idea.

Bézout's lemma


Today we will learn a very beautiful result in number theory, the Bézout's lemma, it is stated as follows.
Bézout's Lemma. Let $a$ and $b$ be two integers and $d$ their greatest common divisor. Then there exist two integers $x$ and $y$ such that $$d = a x + b y.$$

Pythagorean triples

In geometry, there is a well known theorem, called the Pythagorean Theorem, which says that in a right triangle, the square of the hypotenuse is equal to the sum of squares of the other two sides. 
Pythagorean Theorem: $BC^2 = AB^2 + AC^2$


That is why we call the equation $$x^2 + y^2 = z^2$$ the Pythagorean equation and its solution $(x,y,z)$ is called a Pythagorean triple. Of course, we only consider integer solutions.

Today, we will solve the Pythagorean equation and show that this equation has an infinite number of solutions.