Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Number Theory  /
LCM

  • LCM[ , , ... ] gives the least common multiple of the integers .
  • Integer mathematical function (see Section A.3.10).
  • See the Mathematica book: Section 3.2.4.
  • See also: GCD, PolynomialLCM.

    Further Examples

    This gives the least common multiple of the three integers.

    In[1]:=

    Out[1]=

    Here is the least common multiple of the first 1000 integers.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.