EUCLID'S ALGORITHM | |
Section: Maths Workshop | |
1. EUCLID'S ALGORITHM | |
Euclid's Algorithm is illustrated in the following window for us to work out the greatest common divisor of the two numbers M and N. We can write this more simply as gcd (M,N). In this example M=20 and N=32 and the algorithm works as follows: We divide the two initial numbers then put the quotient at the top and the remainder underneath. The remainder then becomes the divisor. The algorithm ends when the remainder is zero and the divisor is the gcd (M,N) we were looking for. |
|
|
Agustín Muñoz Núñez | ||
Spanish Ministry of Education. Year 2001 | ||
Except where otherwise noted, this work is licensed under a Creative Common License