The least common multiple ( LCM ) is a mathematical term. Its counterpart is the greatest common factor (GCF). Both play a role in fractions and number theory , among other things .
The least common multiple of two whole numbers and is the smallest positive natural number that is both a multiple of and a multiple of . In addition, for the case or the LCM is defined as .
The English term for the smallest common multiple is least common multiple , or lcm for short, and is also used in mathematical texts.
Calculation of the LCM of natural numbers
Example of LCM calculation
- The positive multiples of 12 are: 12, 24, 36, 48, 60, 72, 84, 96, 108, ...
- The positive multiples of 18 are: 18, 36, 54, 72, 90, 108, ...
- The common positive multiples of 12 and 18 are therefore 36, 72, 108, ...
- and the smallest of these is 36; in characters:
Calculation using prime factorization
GCF and LCM can be determined by the prime factorization of the two given numbers. Example:
For the LCM one takes the prime factors that occur in at least one of the two decompositions, and as the associated exponent, the larger of the initial exponents:
Calculation using the greatest common divisor (GCD)
The following formula applies:
If both numbers are positive or negative, the amount bars are omitted. This can be used to calculate this if the has already been determined (e.g. with the Euclidean algorithm ) (conversely, this formula can also be used to calculate the one from the ).
After determining one of the two numbers , it is usually easiest to divide by the and multiply by the other number. The amount of the result is what you are looking for . Example:
The 24 and 18 is 6 (to calculate the means Euclidean algorithm see the article to GCD ). This is consequently (since both numbers are positive, the amount is omitted)
-
.
The formula at the beginning of the section is easy to understand, by the way, because the product of the numbers can also be expressed as follows:
-
.
Now this can be determined with the using the factors and , since these are coprime and thus their product with which gives the smallest common multiple (the amount is necessary if one of the two numbers is negative):
Multiplying both sides by the and using the relationship of the previous equation results in the first equation of the section.
The LCM of several numbers
All prime factors that occur in at least one of the numbers are used with the highest power that occurs, for example:
so:
You could also calculate first and then as a two-digit combination on the whole numbers, this is associative :
This justifies the spelling
Applications
Fractions
Suppose you want to add the fractions and . To do this, they must be brought to a common denominator by expanding . It could be with Multiply what gives. The lowest possible common denominator (the so-called main denominator ) is . The two fractions are expanded to this denominator and then added:
The LCM in rings
This is defined analogously to in rings : A ring element is called the smallest common multiple of two ring elements and if is a common multiple of and and in turn every other common multiple of and is a multiple of .
Formally, this definition for a ring is written like this:
This more general definition can be extended to several numbers (even to an infinite number).
Examples
The LCM of polynomials
This cannot only be defined for natural (and whole) numbers. You can z. B. also form for polynomials . Instead of the prime factorization , one takes here the decomposition into irreducible factors:
Then
-
.
The remainder division that exists also for polynomials, the identification of, common divisors.
Gaussian number ring
In the Gaussian number ring , the greatest common divisor of and is even , because and . Strictly speaking, is a greatest common factor, since all the numbers associated with this number are also greatest common factors.
Not in every ring one or one exists for two elements. If they have one, they can have several . If the ring is an integrity ring , then all are associated with one another , in signs .
If an integrity ring is and the elements and have one , then they have one too , and the equation applies
However, if only one of and exists, then there does not necessarily have to be one .
Integrity ring
In the integrity ring have the elements
none : The elements and are two maximum common factors , because both have the same amount . However, these two elements are not associated with each other, so there is no of and .
However, the elements mentioned and have their own GCT, namely . However, they have not , because if one would, then from the "GCD LCM equation" that to associated needs to be. However, the common multiple is not a multiple of , so there is none and the two elements have none at all .
Remarks
An integrity ring in which two elements have one is called a GCT ring or GCT area . In a GCD ring, every two elements also have one .
In a factorial ring , every two elements have one .
In a Euclidean ring , the two elements can be determined with the Euclidean algorithm.
Web links