|
|
Lcm
NameLcm — least common multiple
Syntax
Lcm( expression , ... , expression )
Example
Lcm( 14 , 4 ) = 28
Description
Calculates the least common multiple of a list of arguments.
The least common multiple is the smallest number in Z, such as there exists a number in Z for each argument that can be
multiplied by that argument to produce the result. In the example above, 14 * 2 = 28 and 4 * 7 = 28.
Lcm( x , y ) = ( ( x | Gcd( x , y ) ) * y )
|
|
|