Skip to content
START WITH A QUESTION

What would you like to understand?

Find an answer. See the moment it becomes clear. Follow the idea further.

← Concept directory

Answers for “欧几里得算法如何通过重复除法计算两个自然数的最大公约数?”

4 keyword matches

Understanding your question. You can explore the search results below now.

Find a method

↗

The Euclidean algorithm computes the greatest common divisor by repeatedly applying the division algorithm. Starting with two natural numbers aa and bb, you divide the larger by the smaller to get a quotient and a remainder.

Conditions: The inputs aa and bb are natural numbers.; The division algorithm is applied repeatedly.; The process stops when a remainder equals 0.

Find a method

↗

To form the next division line, you take the divisor from the previous line and make it the dividend of the new line. Then, you take the remainder from the previous line and make it the divisor of the new line.

Conditions: You have just completed a division step in the Euclidean algorithm.; The previous remainder is not 0.

Know when to use it

↗

Strictly speaking, the standard stopping condition for the Euclidean algorithm is to continue until the remainder is 0. The last nonzero remainder is then the gcd.

Conditions: The inputs are natural numbers.; The Euclidean algorithm is being applied.

Meet the concept

↗

The Euclidean algorithm is a method for finding the greatest common divisor (gcd) of two natural numbers. It is set up by repeatedly applying the division algorithm.

Conditions: The inputs aa and bb are natural numbers.; The division algorithm is used at each step.