Least common multiple: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Peter Schmitt
(expanding parallel to gcd)
imported>Peter Schmitt
No edit summary
Line 15: Line 15:
or, if no confusion is to be expected, simply as [a,b].
or, if no confusion is to be expected, simply as [a,b].


 
== Finding the least common multiple ==
For instance,
: lcm(4,9)=36, lcm(4,6)=12, and lcm(4,12)=12,
: for 72 =2.2.2.3.3, 108 =2.2.3.3.3 there is lcm(72,108) = 2.2.3.3 = 432,
: for 6 =2.3, 10 =2.5, 15 =3.5 there is lcm(6,10,15) = 30.


A theoretically important method to determine the least common multiple uses prime factorization:
A theoretically important method to determine the least common multiple uses prime factorization:
Line 32: Line 28:
The least common multiple can be calculated by repeating this:
The least common multiple can be calculated by repeating this:
: lcm(''a'',''b'',''c'') = lcm(''a'',lcm(''b'',''c''))
: lcm(''a'',''b'',''c'') = lcm(''a'',lcm(''b'',''c''))
== Examples ==
For instance,
: lcm(4,9)=36, lcm(4,6)=12, and lcm(4,12)=12,
: for 72 =2.2.2.3.3, 108 =2.2.3.3.3 there is lcm(72,108) = 2.2.3.3 = 432,
: for 6 =2.3, 10 =2.5, 15 =3.5 there is lcm(6,10,15) = 30.


In elementary arithmetic, the least common multiples used when adding fractions.
In elementary arithmetic, the least common multiples used when adding fractions.

Revision as of 11:42, 21 April 2010

This article is developing and not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
Student Level [?]
 
This editable Main Article is under development and subject to a disclaimer.

The least common multiple (often abbreviated lcm, or l.c.m.) of two or more natural numbers is the smallest number which is a multiple of (i.e., is divided evenly by) both (or all) the numbers. Since the product of the numbers is a multiple of each of the numbers, and since a multiple of a number is greater than the number, the least common multiple of some numbers is a number between the greatest of these numbers and their product (inclusive), and it therefore can be determined (at least in principle) by testing finitely many numbers.

The least common multiple of two numbers equals their product if and only if their greatest common divisor is 1, i.e., if they are relatively prime. The least common multiple of three or more numbers equals their product if and only if they are pairwise relatively prime.

The least common multiple of two numbers a and b usually is written as lcm(a,b), or, if no confusion is to be expected, simply as [a,b].

Finding the least common multiple

A theoretically important method to determine the least common multiple uses prime factorization: Every prime factor of one of the numbers must be a prime factor of the least common multiple. The least common multiple therefore is the product of all prime [[[ taken with the highest power occurring in one of the numbers. However, since prime factorization is not efficient, this is at most practical for small numbers.

In order to efficiently calculate the least common multiple of two numbers, first determine the greatest common divisor and then use

lcm(a,b) = ab/gcd(a,b).

The least common multiple can be calculated by repeating this:

lcm(a,b,c) = lcm(a,lcm(b,c))

Examples

For instance,

lcm(4,9)=36, lcm(4,6)=12, and lcm(4,12)=12,
for 72 =2.2.2.3.3, 108 =2.2.3.3.3 there is lcm(72,108) = 2.2.3.3 = 432,
for 6 =2.3, 10 =2.5, 15 =3.5 there is lcm(6,10,15) = 30.

In elementary arithmetic, the least common multiples used when adding fractions.

If

then