This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Number Theory  /
GCD

  • GCD[ , , ... ] gives the greatest common divisor of the integers .
  • Integer mathematical function (see Section A.3.10).
  • GCD[ , ... ] gives the integer factors common to all the .
  • See the Mathematica book: Section 3.2.4.
  • See also: PolynomialGCD, Rational, LCM, ExtendedGCD.

    Further Examples

    Here are a couple of greatest common divisor problems.

    In[1]:=

    Out[1]=