Mathematica > Mathematics and Algorithms > Mathematical Functions > Integer Functions >

LCM

LCM[n1, n2, ...]
gives the least common multiple of the ni.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • LCM works with ordinary and Gaussian integers.
  • LCM works not only with integers but also with rational numbers, both real and complex.
  • For rational numbers ri, LCM[r1, r2, ...] gives the least rational number r for which all the r/ri are integers.
  • LCM automatically threads over lists.
New in 1 | Last modified in 4
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team