I know that Greatest common divisor of two positive integers $a$ and $b$ is the largest positive integer that divides both $a$ and $b$, but how can I use that to prove that $\gcd(a, b) = \gcd(a, b-a)$.
1 Answer
Set $c=\gcd(a,b)$ and $d=\gcd(a,b-a)$ for convenience.
Step 1: Prove that $c$ is a common divisor of $a,b-a$. This proves $c\le d$.
Step 2: Prove that $d$ is a common divisor of $a,b$. This proves $d\le c$.
-
$\begingroup$ how do you prove that c is a common divisor of a, b-a and also how do you prove that d is a common divisor of a, b $\endgroup$ Nov 17, 2015 at 15:44
-
$\begingroup$ We know $c$ divides $a,b$. Hence it divides $a$, and also divides $b-a$. Hence it is a common divisor of $a,b-a$. $\endgroup$– vadim123Nov 17, 2015 at 15:54
-
$\begingroup$ so how does that allow us to come to the fact or how do we use those to tell that gcd(a,b)=gcd(a,b−a)gcd(a,b)=gcd(a,b−a) . $\endgroup$ Nov 18, 2015 at 16:11