Question:
Prove thatgcd(a+b,a−b)=gcd(2a,a−b)=gcd(a+b,2b)
My attempt:
First we prove gcd(a+b,a−b)=gcd(2a,a−b).
Let d=gcd(a+b,a−b) and e=gcd(2a,a−b)
d|a+b and d|a−b⟹∃m,n∈Z such that a+b=dm and a−b=dn⟹a+a−dn=dm⟹2a=dm+dn⟹2a=d(m+n)⟹d|2a
So, d|a−b and d|2a⟹d≤e
e|2a and e|a−b⟹∃m,n∈Z such that 2a=em and a−b=en⟹2a−(a−b)=a+b=em−en=e(m−n)⟹e|(a+b)
So, e|(a−b) and e|(a+b)⟹e≤d
Hence e=d
Similarly, if I prove that gcd(a+b,a−b)=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(a−kb,b).
Answer
Your approach is correct. However a few steps can be shortened.
Let d=gcd(a+b,a−b), then d|a+b and d|a−b, thus d divides all linear combinations of a+b and a−b, in particular d|(a+b)−(a−b)=2b and d|(a+b)+(a−b)=2a. Thus d divides both 2a and 2b.
Now you can take it from here.
No comments:
Post a Comment