If $a,b,c \in Z$, $\gcd(a-b,b-c) = \gcd(a-b,a-c)$

52 Views Asked by At

I need to prove that for every three integers $(a,b,c)$, the $\gcd(a-b,b-c) = \gcd(a-b,a-c)$. Assuming that a $a \ne b$.

Having:

$d_1 = \gcd(a-b,b-c)$

$d_2 = \gcd(a-b,a-c)$

How do i prove $d_1 = d_2$?

2

There are 2 best solutions below

0
On BEST ANSWER

$$\gcd(a-b,b-c) = \gcd(a-b,a-c) \text{ ?}$$

Suppose $d$ is a common divisor of $a-b$ and $b-c$, i.e. it is a divisor of both of them.

Then for some integers $j$ and $k$, we have $dj=a-b$ and $dk=b-c$.

Hence $d(j+k)=(a-b)+(b-c) = a-c$. So $d$ is a divisor of $a-c$.

Thus every common divisor of $a-b$ and $b-c$ is a common divisor of $a-b$ and $a-c$.

In a similar way, one can show that every common divisor of $a-b$ and $a-c$ is a common divisor of $a-b$ and $b-c$.

Thus the set of all common divisors of $a-b$ and $b-c$ is the same as the set of all common divisors of $a-b$ and $a-c$.

The largest member of that set is the $\gcd$, so the $\gcd$ is the same in both cases.

0
On

$d_2 = \gcd(a-b, a-c) = \gcd(a-b, (a-c)-(a-b)) = \gcd(a-b, b-c) = d_1$. Here, you only need to use the fact that $\gcd(x,y) = \gcd(x,x+y) = \gcd(x,x-y).$