Professional Documents
Culture Documents
Greatest Common Divisor Greatest Common Divisor: Á Á Áathematics Áathematics
Greatest Common Divisor Greatest Common Divisor: Á Á Áathematics Áathematics
Reporter
Definition:
a positive integer f is said to be a common divisor of a and b if f | a and f | b. the greatest common divisor of a and b is the positive integer d denoted by d = (a,b) satisfying
i. d | a, d | b and ii. if f | a and f | b, then f d iii. whenever f | a and f | b, then f | d
example:
d = (a,b) 4 = (12, 8)
Euclidean Algorithm
The last nonzero remainder in the division process is the greatest common divisor of a and b
example:
consider a = 36 and b = 123, by performing repeated division, we get the following set of equations 123 = 36 (3) + 15 36 = 15 (2) + 6 15 = 6 (2) + 3 6 = 3 (2)
example:
What is the LCM of 12 and 18? multiples of 12 = {12,24,36, 48, 60, 72, } multiples of 18 = {18, 36, 54, 72, 90, } The set of common multiples of 12 and 18 is {36, 72, } But the least common multiple of 12 and 18 is 36