Eucprf
Eucprf
Eucprf
Recall this definition: When a and b are integers and a 6= 0 we say a divides
b, and write a|b, if b/a is an integer.
1. Use the definition to prove that if a, b, c, x and y are integers and a|b
and a|c, then a|(bx + cy).
Answer: We are given that the two quotients b/a and c/a are integers.
Therefore the integer linear combination (b/a) × x + (c/a) × y = (bx + cy)/a is
an integer, which means that a|(bx + cy).
2. Use Question 1 to prove that if a is a positive integer and b, q and r are
integers with b = aq + r, then gcd(b, a) = gcd(a, r).
Answer: Write m = gcd(b, a) and n = gcd(a, r). Since m divides both b and
a, it must also divide r = b − aq by Question 1. This shows that m is a common
divisor of a and r, so it must be ≤ n, their greatest common divisor. Likewise,
since n divides both a and r, it must divide b = aq + r by Question 1, so n ≤ m.
Since m ≤ n and n ≤ m, we have m = n.
Alternative answer: Let c be a common divisor of b and a. Then by Question
1, c must divide r = b − aq. Thus, the set D of common divisors of b and a is
a subset of the set E of common divisors of a and r. Now let d be a common
divisor of a and r. Then by Question 1, d must divide b = aq + r. Thus, the set
E of common divisors of a and r is a subset of the set D of common divisors of
b and a. Hence D = E and the largest integer in this set is both gcd(b, a) and
gcd(a, r). Therefore gcd(b, a) = gcd(a, r).
1
Recall the Euclidean algorithm:
Let r0 = a and r1 = b be integers with a > b > 0. Apply the division
algorithm x = yq + r, 0 ≤ r < y iteratively to obtain