DM6 EuclideanAlgorithm BP 9 22 14 PDF
DM6 EuclideanAlgorithm BP 9 22 14 PDF
DM6 EuclideanAlgorithm BP 9 22 14 PDF
A METHOD FOR FINDING THE GREATEST COMMON DIVISOR FOR TWO LARGE NUMBERS
To be successful using this method you have got to know how to divide. If this is something that you
have not done in a while and have forgotten or have never really mastered and have relied on the use of
a calculator instead, you will first want to review the Long Division algorithm. Presented here is one
example:
Step 1: Divide
Step 2: Multiply quotient by divisor
Step 3: Subtract result
Step 4: Bring down the next digit
Step 5: Repeat
If you need more help with long division, go to You Tube and search long division. Work through
several examples and make sure you can successfully perform each example viewed on your own.
The greatest common divisor (gcd) of two integers, a and b, is the largest integer
that divides evenly into both a and b.
There are three methods for finding the greatest common factor.
Page 1 of 5
Method #1 The easy method: Inspection
This involves two numbers that, through experience, are easily grasped, such
as 12 and 18.
Start with the smaller of the two numbers, 12. Does this divide into both
numbers? (No, it does not divide evenly into 18.)
Since 12 didnt work, try the next largest integer that evenly divides 12 by
inspection that number is
easily found to be 6. Does 6 Now you try some:
also divide 18? Yes,
Find the greatest common divisor of each by inspection.
therefore we are done we
have found the greatest (a) gcd(24, 54)
common divisor and it is 6, (b) gcd(18, 42)
hence, gcd(12, 18) = 6.
The first step is to break each number into its prime factorization, then discern
all the factors the two numbers have in common. Multiply these together. The
result is the greatest common divisor.
The common factors are 223 = 12, therefore gcf(168, 180) = 12.
This method asks you to perform successive division, first of the smaller of the
two numbers into the larger, followed by the resulting remainder divided into
the divisor of each division until the remainder is equal to zero. At that point,
look at the remainder of the previous division that will be the greatest
common divisor.
Example:
1424 = 2366 + 8
236 = 829 + 4
8 = 42 + 0
Page 3 of 5
is at most 5 times the number of digits in the smaller number.
The example used to find the gcd(1424, 3084) will be used to provide an idea
as to why the Euclidean Algorithm works. Let d represent the greatest common
divisor. Since this number represents the largest divisor that evenly divides
both numbers, it is obvious that d 1424 and d 3084. Hence d 3084 1424
in the same way that a numerator of two or more terms is divisible by a factor
in the denominator if and only if that factor divides evenly into each individual
term in the numerator. Furthermore d 3084 2(1424) or, simplifying the left
side, d 236. Consequently we note that d divides the remainder resulting
from the division of the two numbers for which the greatest common factor is
being sought. This corresponds to the first long division calculated in the
example above.
The problem has now been reduced to a smaller one. We have that d 1424
and d 236. Hence d 1424 236, or better yet, d 1424 6(236) which when
simplified reveals that d 8. At this point we know that d must be one of the
following values: 1, 2, 4, or 8. Note that 8 is the remainder resulting from the
division of the divisor and remainder found in the original division, so it will
not be a divisor of both. So we will take the divisor and remainder from the
second division to reduce the problem to yet an even smaller one.
One last long division reduces the problem one more level the final level. We
have that d 8 and d 4, hence d 8-2(4) or d 0. We can go no further. d 0
does not provide us with any useful information. (Why not?) But d 4, where 4
is seen to be the remainder of the last long division, tells us that d can be 1, 2,
or 4. The largest amongst these is 4 so d must be equal to 4 and we are done.
We have thus discovered that d which equals the gcd(1424, 2084) is equal to
4.
Page 4 of 5
Now you try some: Answers
Page 5 of 5