GCD
GCD[n1, n2, ...]
finds the greatest common denominator of the integer inputs.
Attributes[GCD] := {Flat, Listable, OneIdentity, Orderless, Protected}
Simple examples
In[1]:= GCD[9, 6] Out[1]= 3
In[2]:= GCD[100, 30, 15] Out[2]= 5
GCD[n1, n2, ...]
finds the greatest common denominator of the integer inputs.
Attributes[GCD] := {Flat, Listable, OneIdentity, Orderless, Protected}
In[1]:= GCD[9, 6] Out[1]= 3
In[2]:= GCD[100, 30, 15] Out[2]= 5