The Euclidean Algorithm

 

One of the most important integers associated with a given set of integers is their highest common factor, h.c.f., or greatest common divisor, g.c.d., i.e. the largest positive integer that divides all of them. It is denoted by (a,b). It is easy to determine the h.c.f. when the prime decompositions of the integers are given:

e.g. (4914, 2772) = (2.33.7.13, 22.32.7.11) = 2.32.7 =126

When the prime factors are not known a method can be used that involves successive use of the division algorithm.

Example: Find (30 031, 16 579)

From the division algorithm,
30 031 = 1. 16 579 + 13 452
16 579 = 1. 13 452 + 3 127
13 452 = 4. 3 127 + 944
3 127 = 3. 944 + 295
944 = 3. 295 + 59
295 = 5. 59 + 0
The g.c.d. is 59, reached after 6 divisions. i.e. (30 031, 16 579) = 59

Use the calculator to find the g.c.d. of any two numbers.

Value of a:
Value of b:

The g.c.d. of a and b is the smallest positive linear combination of a and b.
How do we get this linear combination?
One way is the Euclidean algorithm in reverse:

 

 

 

next (sine wave)

Created by Jamie Coventry