HOME

TheInfoList



OR:

In
arithmetic Arithmetic is an elementary branch of mathematics that deals with numerical operations like addition, subtraction, multiplication, and division. In a wider sense, it also includes exponentiation, extraction of roots, and taking logarithms. ...
and
number theory Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, the least common multiple (LCM), lowest common multiple, or smallest common multiple (SCM) of two
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s ''a'' and ''b'', usually denoted by , is the smallest positive integer that is
divisible In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a '' multiple'' of m. An integer n is divisible or evenly divisibl ...
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. The least common multiple of the denominators of two
fractions A fraction (from , "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight-fifths, thre ...
is the "
lowest common denominator In mathematics, the lowest common denominator or least common denominator (abbreviated LCD) is the lowest common multiple of the denominators of a set of fractions. It simplifies adding, subtracting, and comparing fractions. Description The l ...
" (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 , 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

:\operatorname(4, 6) Multiples of 4 are: : 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, ... Multiples of 6 are: : 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, ... ''Common multiples'' of 4 and 6 are the numbers that are in both lists: : 12, 24, 36, 48, 60, 72, ... 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 In mathematics, the lowest common denominator or least common denominator (abbreviated LCD) is the lowest common multiple of the denominators of a set of fractions. It simplifies adding, subtracting, and comparing fractions. Description The l ...
) is used, because each of the fractions can be expressed as a fraction with this denominator. For example, :+=+= 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 A machine is a physical system that uses power to apply forces and control movement to perform an action. The term is commonly applied to artificial devices, such as those employing engines or motors, but also to natural biological macromol ...
, 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 \operatorname(m, n). The first gear must complete \operatorname(m, n)\over m rotations for the realignment. By that time, the second gear will have made \operatorname(m, n)\over n 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 \operatorname(l, m, n) units of time. At this time, the first, second and third planet will have completed \operatorname(l, m, n)\over l, \operatorname(l, m, n)\over m and \operatorname(l, m, n)\over n 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 In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
(gcd) with the formula :\operatorname(a,b)=\frac. To avoid introducing integers that are larger than the result, it is convenient to use the equivalent formulas :\operatorname(a,b)=, a, \,\frac = , b, \,\frac , where the result of the division is always an integer. These formulas are also valid when exactly one of and is , since . However, if both and are , these formulas would cause
division by zero In mathematics, division by zero, division (mathematics), division where the divisor (denominator) is 0, zero, is a unique and problematic special case. Using fraction notation, the general example can be written as \tfrac a0, where a is the di ...
; so, must be considered as a special case. To return to the example above, :\operatorname(21,6) =6\times\frac =6\times\frac 3 =6\times 7 = 42. There are fast
algorithm In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s, such as the
Euclidean algorithm In mathematics, the Euclidean algorithm,Some widely used textbooks, such as I. N. Herstein's ''Topics in Algebra'' and Serge Lang's ''Algebra'', use the term "Euclidean algorithm" to refer to Euclidean division or Euclid's algorithm, is a ...
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 number A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s. The prime numbers can be considered as the atomic elements which, when combined, make up a
composite number A composite number is a positive integer that can be formed by multiplying two smaller positive integers. Accordingly it is a positive integer that has at least one divisor other than 1 and itself. Every positive integer is composite, prime numb ...
. For example: :90 = 2^1 \cdot 3^2 \cdot 5^1 = 2 \cdot 3 \cdot 3 \cdot 5. 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. : \begin 8 & = 2^3 \\ 9 & = 3^2 \\ 21 & = 3^1 \cdot 7^1 \end 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, :\operatorname(8,9,21) = 2^3 \cdot 3^2 \cdot 7^1 = 8 \cdot 9 \cdot 7 = 504. This method is not as efficient as reducing to the greatest common divisor, since there is no known general efficient algorithm for
integer factorization In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
. The same method can also be illustrated with a
Venn diagram A Venn diagram is a widely used diagram style that shows the logical relation between set (mathematics), sets, popularized by John Venn (1834–1923) in the 1880s. The diagrams are used to teach elementary set theory, and to illustrate simple ...
as follows, with the
prime factorization In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
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 In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
(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 In mathematics, the fundamental theorem of arithmetic, also called the unique factorization theorem and prime factorization theorem, states that every integer greater than 1 is prime or can be represented uniquely as a product of prime numbers, ...
, every integer greater than 1 can be represented uniquely as a product of prime numbers,
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation " * if and are related by , that is, * if holds, that is, * if the equivalence classes of and with respect to are equal. This figure of speech ...
the order of the factors: :n = 2^ 3^ 5^ 7^ \cdots = \prod_p p^, where the exponents ''n''2, ''n''3, ... are non-negative integers; for example, 84 = 22 31 50 71 110 130 ... Given two positive integers a = \prod_p p^ and b = \prod_p p^, their greatest common divisor and least common multiple are given by the formulas :\gcd(a,b) = \prod_p p^ and :\operatorname(a,b) = \prod_p p^. Since :\min(x,y) + \max(x,y) = x + y, this gives :\gcd(a,b) \operatorname(a,b) = ab. 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: :\begin 4 &= 2^2 3^0, & 6 &= 2^1 3^1, & \gcd(4, 6) &= 2^1 3^0 = 2, & \operatorname(4,6) &= 2^2 3^1 = 12. \\ pt \tfrac &= 2^0 3^ 5^0, & \tfrac &= 2^1 3^0 5^, & \gcd\left(\tfrac13, \tfrac\right) &= 2^0 3^ 5^ = \tfrac, & \operatorname\left(\tfrac, \tfrac\right) &= 2^1 3^0 5^0 = 2, \\ pt \tfrac &= 2^ 3^, & \tfrac &= 2^ 3^1, & \gcd\left(\tfrac, \tfrac\right) &= 2^ 3^ = \tfrac, & \operatorname\left(\tfrac, \tfrac\right) &= 2^ 3^1 = \tfrac. \end


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 ''a'' ≤ ''b'' (or equivalently, ''b'' ≥ ''a''). (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. It can also be shown that this lattice is distributive; that is, lcm distributes over gcd and gcd distributes over lcm: :\operatorname(a,\gcd(b,c)) = \gcd(\operatorname(a,b),\operatorname(a,c)), :\gcd(a,\operatorname(b,c)) = \operatorname(\gcd(a,b),\gcd(a,c)). This identity is self-dual: :\gcd(\operatorname(a,b),\operatorname(b,c),\operatorname(a,c))=\operatorname(\gcd(a,b),\gcd(b,c),\gcd(a,c)).


Other

* Let ''D'' be the product of ''ω''(''D'') distinct prime numbers (that is, ''D'' is squarefree). Then :, \, = 3^, where the absolute bars , , denote the
cardinality The thumb is the first digit of the hand, next to the index finger. When a person is standing in the medical anatomical position (where the palm is facing to the front), the thumb is the outermost digit. The Medical Latin English noun for thum ...
of a set. * If none of a_1, a_2, \ldots , a_r is zero, then :\operatorname(a_1, a_2, \ldots , a_r) = \operatorname(\operatorname(a_1, a_2, \ldots , a_), a_r).


In commutative rings

The least common multiple can be defined generally over
commutative ring In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
s as follows: Let and be elements of a commutative ring . A ''common multiple'' of and is an element of such that both and divide (that is, there exist elements and of such that and ). A ''least common multiple'' of and is a common multiple that is minimal, in the sense that for any other common multiple of and , divides . 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 In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
, any two elements have a least common multiple. In a
principal ideal domain In mathematics, a principal ideal domain, or PID, is an integral domain (that is, a non-zero commutative ring without nonzero zero divisors) in which every ideal is principal (that is, is formed by the multiples of a single element). Some author ...
, the least common multiple of and can be characterised as a generator of the intersection of the ideals generated by and (the intersection of a collection of ideals is always an ideal).


See also

*
Anomalous cancellation An anomalous cancellation or accidental cancellation is a particular kind of arithmetic procedural error that gives a numerically correct answer. An attempt is made to reduce a fraction A fraction (from , "broken") represents a part of a wh ...
*
Coprime integers In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiva ...
* Chebyshev function


Notes


References

* * * * * * * {{DEFAULTSORT:Least Common Multiple Elementary arithmetic Operations on numbers Number theory