Least Common Multiple

In arithmetic and number theory, the least common multiple, lowest common multiple, or smallest common multiple of two integers a and b, usually denoted by lcm(a, b), is the smallest positive integer that is divisible by both a and b.

Since division of integers by zero is undefined, this definition has meaning only if a and b are both different from zero. However, some authors define lcm(a, 0) as 0 for all a, since 0 is the only common multiple of a and 0.

Least Common Multiple
A Venn diagram showing the least common multiples of 2, 3, 4, 5 and 7 (and of their combinations, like 6 and 8).
For example, a card game which requires its cards to be divided equally among up to 5 players requires at least 60 cards, the number at the intersection of the 2, 3, 4, and 5 sets, but not the 7 set.

The least common multiple of the denominators of two fractions is the "lowest common denominator" (lcd), and can be used for adding, subtracting or comparing the fractions.

The least common multiple of more than two integers a, b, c, . . . , usually denoted by lcm(abc, . . .), is defined as the smallest positive integer that is divisible by each of a, b, c, . . .

Overview

A multiple of a number is the product of that number and an integer. For example, 10 is a multiple of 5 because 5 × 2 = 10, so 10 is divisible by 5 and 2. Because 10 is the smallest positive integer that is divisible by both 5 and 2, it is the least common multiple of 5 and 2. By the same principle, 10 is the least common multiple of −5 and −2 as well.

Notation

The least common multiple of two integers a and b is denoted as lcm(a, b). Some older textbooks use [a, b].

Example

    Least Common Multiple 

Multiples of 4 are:

    Least Common Multiple 

Multiples of 6 are:

    Least Common Multiple 

Common multiples of 4 and 6 are the numbers that are in both lists:

    Least Common Multiple 

In this list, the smallest number is 12. Hence, the least common multiple is 12.

Applications

When adding, subtracting, or comparing simple fractions, the least common multiple of the denominators (often called the lowest common denominator) is used, because each of the fractions can be expressed as a fraction with this denominator. For example,

    Least Common Multiple 

where the denominator 42 was used, because it is the least common multiple of 21 and 6.

Gears problem

Suppose there are two meshing gears in a machine, having m and n teeth, respectively, and the gears are marked by a line segment drawn from the center of the first gear to the center of the second gear. When the gears begin rotating, the number of rotations the first gear must complete to realign the line segment can be calculated by using Least Common Multiple . The first gear must complete Least Common Multiple  rotations for the realignment. By that time, the second gear will have made Least Common Multiple  rotations.

Planetary alignment

Suppose there are three planets revolving around a star which take l, m and n units of time, respectively, to complete their orbits. Assume that l, m and n are integers. Assuming the planets started moving around the star after an initial linear alignment, all the planets attain a linear alignment again after Least Common Multiple  units of time. At this time, the first, second and third planet will have completed Least Common Multiple , Least Common Multiple  and Least Common Multiple  orbits, respectively, around the star.

Calculation

There are several ways to compute least common multiples.

Using the greatest common divisor

The least common multiple can be computed from the greatest common divisor (gcd) with the formula

    Least Common Multiple 

To avoid introducing integers that are larger than the result, it is convenient to use the equivalent formulas

    Least Common Multiple 

where the result of the division is always an integer.

These formulas are also valid when exactly one of a and b is 0, since gcd(a, 0) = |a|. However, if both a and b are 0, these formulas would cause division by zero; so, lcm(0, 0) = 0 must be considered as a special case.

To return to the example above,

    Least Common Multiple 

There are fast algorithms, such as the Euclidean algorithm for computing the gcd that do not require the numbers to be factored. For very large integers, there are even faster algorithms for the three involved operations (multiplication, gcd, and division); see Fast multiplication. As these algorithms are more efficient with factors of similar size, it is more efficient to divide the largest argument of the lcm by the gcd of the arguments, as in the example above.

Using prime factorization

The unique factorization theorem indicates that every positive integer greater than 1 can be written in only one way as a product of prime numbers. The prime numbers can be considered as the atomic elements which, when combined, make up a composite number.

For example:

    Least Common Multiple 

Here, the composite number 90 is made up of one atom of the prime number 2, two atoms of the prime number 3, and one atom of the prime number 5.

This fact can be used to find the lcm of a set of numbers.

Example: lcm(8,9,21)

Factor each number and express it as a product of prime number powers.

    Least Common Multiple 

The lcm will be the product of multiplying the highest power of each prime number together. The highest power of the three prime numbers 2, 3, and 7 is 23, 32, and 71, respectively. Thus,

    Least Common Multiple 

This method is not as efficient as reducing to the greatest common divisor, since there is no known general efficient algorithm for integer factorization.

The same method can also be illustrated with a Venn diagram as follows, with the prime factorization of each of the two numbers demonstrated in each circle and all factors they share in common in the intersection. The lcm then can be found by multiplying all of the prime numbers in the diagram.

Here is an example:

    48 = 2 × 2 × 2 × 2 × 3,
    180 = 2 × 2 × 3 × 3 × 5,

sharing two "2"s and a "3" in common:

    Least common multiple = 2 × 2 × 2 × 2 × 3 × 3 × 5 = 720
    Greatest common divisor = 2 × 2 × 3 = 12
    Product = 2 × 2 × 2 × 2 × 3 × 2 × 2 × 3 × 3 × 5 = 8640

This also works for the greatest common divisor (gcd), except that instead of multiplying all of the numbers in the Venn diagram, one multiplies only the prime factors that are in the intersection. Thus the gcd of 48 and 180 is 2 × 2 × 3 = 12.

Formulas

Fundamental theorem of arithmetic

According to the fundamental theorem of arithmetic, every integer greater than 1 can be represented uniquely as a product of prime numbers, up to the order of the factors:

    Least Common Multiple 

where the exponents n2, n3, ... are non-negative integers; for example, 84 = 22 31 50 71 110 130 ...

Given two positive integers Least Common Multiple  and Least Common Multiple , their least common multiple and greatest common divisor are given by the formulas

    Least Common Multiple 

and

    Least Common Multiple 

Since

    Least Common Multiple 

this gives

    Least Common Multiple 

In fact, every rational number can be written uniquely as the product of primes, if negative exponents are allowed. When this is done, the above formulas remain valid. For example:

    Least Common Multiple 

Lattice-theoretic

The positive integers may be partially ordered by divisibility: if a divides b (that is, if b is an integer multiple of a) write ab (or equivalently, ba). (Note that the usual magnitude-based definition of ≤ is not used here.)

Under this ordering, the positive integers become a lattice, with meet given by the gcd and join given by the lcm. The proof is straightforward, if a bit tedious; it amounts to checking that lcm and gcd satisfy the axioms for meet and join. Putting the lcm and gcd into this more general context establishes a duality between them:

    If a formula involving integer variables, gcd, lcm, ≤ and ≥ is true, then the formula obtained by switching gcd with lcm and switching ≥ with ≤ is also true. (Remember ≤ is defined as divides).

The following pairs of dual formulas are special cases of general lattice-theoretic identities.

    Commutative laws
    Least Common Multiple 
    Least Common Multiple 
    
    Associative laws
    Least Common Multiple 
    Least Common Multiple 
    
    Absorption laws
    Least Common Multiple 
    Least Common Multiple 
    Idempotent laws
    Least Common Multiple 
    Least Common Multiple 
    

It can also be shown that this lattice is distributive; that is, lcm distributes over gcd and gcd distributes over lcm:

    Least Common Multiple 
    Least Common Multiple 

This identity is self-dual:

    Least Common Multiple 

Other

  • Let D be the product of ω(D) distinct prime numbers (that is, D is squarefree).

Then

    Least Common Multiple 

where the absolute bars || denote the cardinality of a set.

  • If none of Least Common Multiple  is zero, then
    Least Common Multiple 

In commutative rings

The least common multiple can be defined generally over commutative rings as follows:

Let a and b be elements of a commutative ring R. A common multiple of a and b is an element m of R such that both a and b divide m (that is, there exist elements x and y of R such that ax = m and by = m). A least common multiple of a and b is a common multiple that is minimal, in the sense that for any other common multiple n of a and b, m divides n.

In general, two elements in a commutative ring can have no least common multiple or more than one. However, any two least common multiples of the same pair of elements are associates. In a unique factorization domain, any two elements have a least common multiple. In a principal ideal domain, the least common multiple of a and b can be characterised as a generator of the intersection of the ideals generated by a and b (the intersection of a collection of ideals is always an ideal).

See also

Notes

References

Tags:

Least Common Multiple OverviewLeast Common Multiple ApplicationsLeast Common Multiple CalculationLeast Common Multiple FormulasLeast Common Multiple In commutative ringsLeast Common MultipleArithmeticDivisibleDivision by zeroIntegerNumber theory

🔥 Trending searches on Wiki English:

William ShakespeareNick SimmonsChernobyl disasterJ. Robert OppenheimerMaldivesX-Men '97Justin BieberJosh HartnettChelsea F.C.The Gentlemen (2019 film)I, Robot (film)2024 Iranian strikes in IsraelXXXTentacionDirlewanger BrigadeYoung SheldonRussian rescue ship KommunaThe Witcher (TV series)The Goat LifeNapoleonWrexham A.F.C.Leslie UggamsPokémonDelta BurkeEmma RobertsCandidates Tournament 2022Killing EveTheo JamesDune (novel)Priscilla Presley2024 Indian general electionAli KhameneiVideoDawn of the Planet of the ApesVladimir LeninKobe BryantGoogle ScholarKepler's SupernovaDoja CatGerald McRaneySalman RushdieRipley (TV series)2024 United States presidential electionDamian LillardDavid BeckhamArsenal F.C.ExhumaMansfield Smith-CummingGoogleEminemKirsten DunstJoe AlwynEFL ChampionshipVietnamDeaths in 202469 (sex position)Devin HaneyMidnightsPirates of the Caribbean (film series)Clara BowKim Ji-won (actress)Euphoria (American TV series)John TravoltaPat Tillman2023–24 UEFA Champions LeagueColumbia UniversityShingō, AomoriArticle 370 of the Constitution of IndiaMaadhavi LathaMarilyn Monroe2024 Maldivian parliamentary electionShutter Island (film)The Blair Witch ProjectLockheed Martin F-35 Lightning IIShannon TweedMurder of Junko FurutaShakur StevensonGeorge III🡆 More