Divisibility, Greatest common divisor

One of the distinctive properties of the set of integers, [Graphics:../Images/gcd_gr_1.gif] is that if you divide a positive number into any integer, you will get a  unique quotient and remainder.  More precisely, if you divide b ([Graphics:../Images/gcd_gr_2.gif]) into a, there will be integers q and r such that [Graphics:../Images/gcd_gr_3.gif] and [Graphics:../Images/gcd_gr_4.gif].     We will take this as given, but it can be proven by mathematical  induction.

If [Graphics:../Images/gcd_gr_5.gif], i. e.,  [Graphics:../Images/gcd_gr_6.gif],  then all of the following say the same thing
            b divides a
            a is a multiple of b
            b is a factor of a
            b is a divisor of a

[Graphics:../Images/gcd_gr_7.gif] is the largest positive integer that is a divisor of both a and b.

In Mathematica you can get the gcd of two numbers using the function GCD:

[Graphics:../Images/gcd_gr_8.gif]
[Graphics:../Images/gcd_gr_9.gif]
[Graphics:../Images/gcd_gr_10.gif]
[Graphics:../Images/gcd_gr_11.gif]

More information can be obtained with ExtendedGCD

[Graphics:../Images/gcd_gr_12.gif]
[Graphics:../Images/gcd_gr_13.gif]
[Graphics:../Images/gcd_gr_14.gif]
[Graphics:../Images/gcd_gr_15.gif]


We'll see what the second item in this output represents below.


Converted by Mathematica      August 20, 2002