Difference between revisions of "Manuals/calci/LCM"

From ZCubes Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
=LCM(a,b,c...,n)=
 
  
 +
<div style="font-size:30px">'''LCM()'''</div><br/>
 +
*Parameters are any set of numbers.
 +
*LCM() returns the least common multiple.
 +
 +
==Description==
 
*LCM is the '''least common multiple''' (also known as '''lowest common multiple''' or '''smallest common multiple''' or '''least common denominator  (LCD)''' of a set of integers a,b,c,...,n.
 
*LCM is the '''least common multiple''' (also known as '''lowest common multiple''' or '''smallest common multiple''' or '''least common denominator  (LCD)''' of a set of integers a,b,c,...,n.
 
* LCM is the smallest integer that is divisible by each of them.
 
* LCM is the smallest integer that is divisible by each of them.
 
* The argument can be one or many integers.
 
* The argument can be one or many integers.
 
For example,
 
  
 
What is the LCM of 2 and 5?
 
What is the LCM of 2 and 5?
Line 20: Line 22:
 
So, from this list of the first few common multiples of the numbers 2 and 5, their least common multiple is 10.
 
So, from this list of the first few common multiples of the numbers 2 and 5, their least common multiple is 10.
  
=Examples=
+
==Examples==
 +
*=LCM(10,20) =20
 +
*=LCM(1,2,3,4,5) = 60
 +
*=LCM(12,19,23,17)= 89148
 +
*=LCM(1.2,1.3,1.4,1.5,3.4,5.3)= 15
 +
*=LCM(-2,-4,8,12) = #N/A (LCM NOT DEFINED FOR -VE NUMBERS)
  
'''Give calci examples and different cases here.'''
+
== Related Videos ==
 +
{{#ev:youtube|znmPfDfsir8|280|center|LCM}}
  
 
=See Also=
 
=See Also=
Line 31: Line 39:
 
*[http://en.wikipedia.org/wiki/Least_common_multiple LCM]
 
*[http://en.wikipedia.org/wiki/Least_common_multiple LCM]
 
*[http://en.wikipedia.org/wiki/Greatest_common_divisor GCD (Greatest Common Divisor)]
 
*[http://en.wikipedia.org/wiki/Greatest_common_divisor GCD (Greatest Common Divisor)]
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 05:43, 8 June 2020

LCM()


  • Parameters are any set of numbers.
  • LCM() returns the least common multiple.

Description

  • LCM is the least common multiple (also known as lowest common multiple or smallest common multiple or least common denominator (LCD) of a set of integers a,b,c,...,n.
  • LCM is the smallest integer that is divisible by each of them.
  • The argument can be one or many integers.

What is the LCM of 2 and 5?

Multiples of 2 are: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, ...

and the multiples of 5 are: 5, 10, 15, 20, 25, 30, ...

Common multiples of 2 and 5 are simply the numbers that are in both lists: 10, 30, ....

So, from this list of the first few common multiples of the numbers 2 and 5, their least common multiple is 10.

Examples

  • =LCM(10,20) =20
  • =LCM(1,2,3,4,5) = 60
  • =LCM(12,19,23,17)= 89148
  • =LCM(1.2,1.3,1.4,1.5,3.4,5.3)= 15
  • =LCM(-2,-4,8,12) = #N/A (LCM NOT DEFINED FOR -VE NUMBERS)

Related Videos

LCM

See Also

References