Greatest common divisor
In mathematics, the greatest
common divisor (gcd), also known as the greatest common factor (gcf),
or highest common factor (hcf),
of two or more non-zero integers, is the largest positive integer that divides the numbers without a remainder. For example, the GCD of 8 and
12 is 4.
This notion can be extended to polynomials, see greatest common divisor of two polynomials.
Overview
Example
The number 54 can be expressed as a product of two other
integers in several different ways:
Thus the divisors
of 54 are:
Similarly the
divisors of 24 are:
The numbers that these two lists share in common are the common divisors of 54 and 24:
The greatest of these is 6. That is the greatest common divisor of 54 and 24. One writes:
Reducing fractions
The greatest common divisor is useful for reducing fractions to be in lowest terms. For example, gcd(42, 56) = 14,
therefore,
The greatest common divisor of a and b is written as gcd(a, b), or sometimes simply as (a, b). For example, gcd(12, 18) = 6, gcd(−4, 14) = 2. Two numbers are called relatively prime, orcoprime
if their greatest common divisor equals 1. For example, 9 and 28 are relatively prime.What they share in common is two "2"s and a "3":
Least common
multiple = 2 × 2 × 2 × 2 × 3 × 3 × 5 = 720
Greatest common
divisor = 2 × 2 × 3 = 12.
http://www.khanacademy.org/video/greatest-common-divisor?playlist=Arithmetic