Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Integer Functions >

GCD

GCD[n1, n2, ...]
gives the greatest common divisor of the integers ni.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • GCD[n1, ...] gives the integer factors common to all the ni.
  • GCD also works with rational numbers; GCD[r1, r2, ...] gives the greatest rational number r for which all the ri/r are integers.
  • GCD automatically threads over lists.
New in 1
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team