$\gcd(A,B) \leq \gcd(B,A-B)$

98 Views Asked by At

I was reading the proof related to GCD from the Khan Academy website I understand the algebra but I cannot understand the reasoning of the following sentence.

Let $C=A-B.$ Then $\gcd(A,B)$ must be less than or equal to, $\gcd(B,C),$ because $\gcd(B,C)$ is the “greatest” common divisor of $B$ and $C.$

How is the $\gcd(A, B)$ less than the $\gcd(B, C)?$ I can understand it could be equal to due to the $B$ being common in both, but I cant understand why it would be less. Could someone please explain?

1

There are 1 best solutions below

0
On

Let $c=\gcd(A,B)$ and $d=\gcd(B,A-B).$ So, $$c\mid A,B \implies c \mid A-B.$$ Thus, $c \mid B,A-B.$ Hence, $c \leq d.$

Also, $$d\mid B,A-B \implies d\mid A.$$ Thus, $d \mid A,B.$ Hence, $d\leq c.$

So, indeed $c=d.$ (but that also means that $c\leq d$.)