Difference between revisions of "Manuals/calci/LCM"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''LCM'''(Number1, Number2..............) where, '''Number1, Number2......''' - are represents number. </d...")
 
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
 
  
'''LCM'''(Number1, Number2..............)
+
<div style="font-size:30px">'''LCM()'''</div><br/>
 +
*Parameters are any set of numbers.
 +
*LCM() returns the least common multiple.
  
where,
+
==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.
  
'''Number1, Number2......''' - are represents number.
+
What is the LCM of 2 and 5?
  
</div>
+
Multiples of 2 are:
----
+
2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, ...
<div id="1SpaceContent" class="zcontent" align="left">Returns the smallest interger that divides all numbers .</div>
 
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
If any parameters is nonnumeric, LCM returns #ERROR.
+
and the multiples of 5 are:
 +
5, 10, 15, 20, 25, 30, ...
  
If  Number &lt;  0 , it returns #ERROR.
+
Common multiples of 2 and 5 are simply the numbers that are in both lists:
 +
10, 30, ....
  
</div>
+
So, from this list of the first few common multiples of the numbers 2 and 5, their least common multiple is 10.
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
LCM
+
==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)
  
</div></div>
+
== Related Videos ==
----
+
{{#ev:youtube|znmPfDfsir8|280|center|LCM}}
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column1, Row2)
+
=See Also=
 +
*[[Manuals/calci/GCD | GCD]]
  
<nowiki>=LCM(5,10)</nowiki>
+
=References=
  
LCM returns 10.
+
*[http://en.wikipedia.org/wiki/Least_common_multiple LCM]
 +
*[http://en.wikipedia.org/wiki/Greatest_common_divisor GCD (Greatest Common Divisor)]
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| class="  " | Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 10
 
|
 
|
 
|
 
|- class="even"
 
| class="  " | Row2
 
| class=" SelectTD  SelectTD ChangeBGColor" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
|
 
|
 
|
 
|- class="odd"
 
| Row3
 
|
 
|
 
|
 
|
 
|- class="even"
 
| Row4
 
|
 
|
 
|
 
|
 
|- class="odd"
 
| class=" " | Row5
 
|
 
|
 
|
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
|
 
|
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[Z_API_Functions | List of Main Z Functions]]
----
+
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 04: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