What is Euclidean algorithm?
Short answer
The Euclidean algorithm is a way to find the greatest common divisor of two numbers by dividing repeatedly and taking the remainder.
- Type
- Definition
- First learned
- Grade 6
- Also called
- thuật toán Ơ-clít, thuật toán Euclide, thuat toan euclid
- In English
- Euclidean algorithm, Euclid's algorithm
Formulas
Explanation
The Euclidean algorithm is used to find the greatest common divisor of two natural numbers. How it works: divide the larger number by the smaller one; if the remainder is not 0, take the divisor and divide it by the remainder, and keep going until the remainder is 0. The greatest common divisor is the divisor of the last division.
This algorithm is much faster than listing all the divisors. It is based on the property , where is the remainder when dividing by .
You can use the Euclidean algorithm to simplify the fraction to a fraction in simplest form when the numerator and denominator are large numbers.
Examples
Example 1
Use the Euclidean algorithm to find .
See the solution to example 1
We have , , . So .
Common mix-ups
- When dividing, you must take the old divisor and divide it by the new remainder, not divide the larger number by the remainder right from the start.
- The algorithm stops when the remainder is 0; the greatest common divisor is the divisor in the last division, not the remainder 0.
Where the name comes from
The algorithm is named after the ancient Greek mathematician Euclid (around 300 BC), who recorded it in the book Elements.
Skills
- Thuật toán Euclid Grade 6