Saturday, December 24, 2016

elementary number theory - Prove thatgcd(a+b,ab)=gcd(2a,ab)=gcd(a+b,2b)



Question:



Prove thatgcd(a+b,ab)=gcd(2a,ab)=gcd(a+b,2b)



My attempt:




First we prove gcd(a+b,ab)=gcd(2a,ab).



Let d=gcd(a+b,ab) and  e=gcd(2a,ab)



d|a+b and  d|abm,nZ such that  a+b=dm and  ab=dna+adn=dm2a=dm+dn2a=d(m+n)d|2a



So,  d|ab and  d|2ade



e|2a and  e|abm,nZ such that  2a=em and  ab=en2a(ab)=a+b=emen=e(mn)e|(a+b)




So,  e|(ab) and  e|(a+b)ed



Hence e=d



Similarly, if I prove that gcd(a+b,ab)=gcd(a+b,2b), will the proof be complete?



I am not quite sure if this is the correct way to prove the problem. My professor used a similar approach to prove that  gcd(a,b)=gcd(akb,b).


Answer



Your approach is correct. However a few steps can be shortened.




Let d=gcd(a+b,ab), then d|a+b and d|ab, thus d divides all linear combinations of a+b and ab, in particular d|(a+b)(ab)=2b and d|(a+b)+(ab)=2a. Thus d divides both 2a and 2b.



Now you can take it from here.


No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...