- #1
Math100
- 802
- 222
- Homework Statement
- For a nonzero integer a, show that gcd(a, 0)=abs(a), gcd(a, a)=abs(a), and gcd(a, 1)=1.
- Relevant Equations
- None.
Proof: First, we will show that gcd(a, 0)=abs(a).
Suppose a is a nonzero integer such that a##\neq##0.
Note that gcd(a, 0)##\le##abs(a) by definition of the greatest common divisor.
Since abs(a) divides both a and 0,
we have that gcd(a, 0)=abs(a).
Therefore, for a nonzero integer a,
we have shown that gcd(a, 0)=abs(a).
Next, we will show that gcd(a, a)=abs(a).
Suppose a is a nonzero integer such that a##\neq##0.
Note that gcd(a, a)##\le##abs(a) by definition of the greatest common divisor.
Since abs(a) divides a, we have that gcd(a, a)=abs(a).
Therefore, for a nonzero integer a,
we have shown that gcd(a, a)=abs(a).
Finally, we will show that gcd(a, 1)=1.
Suppose a is a nonzero integer such that a##\neq##0.
Note that gcd(a, 1)##\le##1 by definition of the greatest common divisor.
Since 1 divides both a and 1,
we have that gcd(a, 1)=1.
Therefore, for a nonzero integer a,
we have shown that gcd(a, 1)=1.
Suppose a is a nonzero integer such that a##\neq##0.
Note that gcd(a, 0)##\le##abs(a) by definition of the greatest common divisor.
Since abs(a) divides both a and 0,
we have that gcd(a, 0)=abs(a).
Therefore, for a nonzero integer a,
we have shown that gcd(a, 0)=abs(a).
Next, we will show that gcd(a, a)=abs(a).
Suppose a is a nonzero integer such that a##\neq##0.
Note that gcd(a, a)##\le##abs(a) by definition of the greatest common divisor.
Since abs(a) divides a, we have that gcd(a, a)=abs(a).
Therefore, for a nonzero integer a,
we have shown that gcd(a, a)=abs(a).
Finally, we will show that gcd(a, 1)=1.
Suppose a is a nonzero integer such that a##\neq##0.
Note that gcd(a, 1)##\le##1 by definition of the greatest common divisor.
Since 1 divides both a and 1,
we have that gcd(a, 1)=1.
Therefore, for a nonzero integer a,
we have shown that gcd(a, 1)=1.