Prove that if gcd(a,b)=d, then gcd(a,a-b)=d.
okay
if d is the gcd of a and b then a=dm b=dn a-b=dm-dn =d(m-n)
d must also be the biggest divisor of a-b
so it is still the gcd of a and a-b
and a =/= b so m=/=n
thats actually how gcd is found in euclid gcd algofithm !
Yes, but how do you prove that m is coprime to m-n? Am I missing something that is incredibly obvious here?
im not sure what u mean but
if there exists a greater divisior for m-n then d was not the gcd
becaue this higher gcd will also divide a and b
and u can see that by working backwards
actually i retract that statement!! i dunnoo
like suppose m-n became a bigger negative number
then a bigger positive number wud divide m-n but it wont be the divisor of a and b
as it wud be greater than d
if d = gcd(a, b) then we have gcd(a/d, b/d) = 1 so m, n are coprime be definition of gcd itself
``` if d is the gcd of a and b then a=dm b=dn a-b=dm-dn =d(m-n) ``` here we have started with d = gcd(a,b) and expressed a and b using gcd as : a = dm b = dn all the common factors are in d, there is nothing left common between m and n anymore
im confused try to explain it to me maybe it will help also have some cake
The cake is a lie!
NOOOOOOOOOOO *crys*
let me know if you still need a complete proof this is a classic, im sure wiki has dozens of proofs for this :)
I still don't understand. If m and n are coprime then what does it tell us about m and m-n?
lets look at `m-n` since thats the new thing
Prove that if gcd(a,b)=d, then gcd(a,a-b)=d gcd(a,b)=d ma+nb=d ma+nb+na-na=d a(m+n)+n(b-a)=d a(m+n)-n(a-b)=d gcd(a,b)=d
i was gonna write what ganesh wrote but changed it when i saw the reply to another proof :P
i like that version of proof, but the OP needs to know that gcd can be expressed as a linear combination first
im sure he know(but sorry cuz i dint mention that XD)
Nope I don't know that. That comes later in my book.
Lets start from scratch, shall we ?
I think a proof by contradiction should proof that m is coprime to m-n but couldn't produce one.
if d = gcd(a, b), then the relations d | a and d | b together imply that d | (a-b) yes ?
Yes?
for example : 6 = gcd(12, 42), so 6 | (12 - 42)
if \(d = \gcd(a, b)\), then the relations \(d | a\) and \(d | b\) together imply that \(d | (a-b)\) thus \(d\) is a common divisor of both \(a\) and \(a-b\)
thats almost half of the proof ^ see if that looks okay so far
Yes the part I am having problem with is the maximality of the divisor.
next half deals with that
Next consider some arbitrary common divisor of \(a\) and \(a-b\). Call it \(c\) \(c | a\) and \(c | (a-b)\) so by the same previous logic, we have \( c | (a -( a-b))\). which is same as \(c | b\). That means \(c\) is a common divisor of \(a\) and \(b\). Thus it has to be less than or equal to the gcd(a,b) which is \(d\). \(\blacksquare\)
thats the end of proof
we dealt with maximality by showing that ANY common divisor of \(a\) and \(a-b\) has to be less than or equal to \(\gcd(a,b)\)
a=nd b=md s.t gcd(n,m)=1 a-b=nd-md=d(n-m)---->d|d(n-m) d|d but d dont divide n-m thus d|a-b (a-b)/d=n-m ---> no other common idk if this makes it clear XD
That kind of make sense. Something still didn't click though. Give me some time.
\[c | (a-(a-b)) \] \[c | (a-a+b) \] \[c |b \]
That make sense. Thanks.
Join our real-time social learning platform and learn together with your friends!