PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Mathematics and Algorithms
>
Mathematical Functions
>
Integer Functions
>
Built-in
Mathematica
Symbol
Integer and Number Theoretic Functions
Tutorials »
|
GCD
PolynomialLCM
ExtendedGCD
See Also »
|
Integer Functions
Number Theoretic Functions
More About »
LCM
LCM
[
n
1
,
n
2
,
...
]
gives the least common multiple of the
n
i
.
MORE INFORMATION
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
r
i
,
LCM
[
r
1
,
r
2
,
...
]
gives the least rational number
r
for which all the
r
/
r
i
are integers.
LCM
automatically threads over lists.
LCM
has attributes
Flat
and
Orderless
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Least common multiple of three integers:
In[1]:=
Out[1]=
Plot the
LCM
for a number with 1000:
In[1]:=
Out[1]=
Scope
(4)
Applications
(6)
Properties & Relations
(6)
Possible Issues
(2)
Neat Examples
(2)
SEE ALSO
GCD
PolynomialLCM
ExtendedGCD
TUTORIALS
Integer and Number Theoretic Functions
RELATED LINKS
MathWorld
The Wolfram Functions Site
NKS|Online
(
A New Kind of Science
)
MORE ABOUT
Integer Functions
Number Theoretic Functions
New in 1 | Last modified in 4
© 2008 Wolfram Research, Inc.