*** Welcome to piglix ***

Lowest 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(ab), 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, which is the result of taking the lcm to be the least upper bound in the lattice of divisibility.

The LCM is the "lowest common denominator" (LCD) that must be determined before fractions can be added, subtracted or compared. The LCM of more than two integers is also well-defined: it is the smallest positive integer that is divisible by each of them.

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.

In this article we will denote the least common multiple of two integers a and b as lcm(a, b).

Some older textbooks use [a, b].

The programming language J uses a*.b

What is the LCM of 4 and 6?

Multiples of 4 are:

and the multiples of 6 are:

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

So, from this list of the first few common multiples of the numbers 4 and 6, their least common multiple is 12.

When adding, subtracting, or comparing vulgar fractions, it is useful to find the least common multiple of the denominators, often called the lowest common denominator, because each of the fractions can be expressed as a fraction with this denominator. For instance,


...
Wikipedia

...