If a,b∈N and gcd(a,b)=1, prove that gcd(a+b,a2+b2) is always equal to either 1 or 2, where gcd is the greatest common divisor. I haven't really ever solved a problem like this before, so I'd like to get some help. Thanks.
Answer
If integer d divides both a+b,a2+b2
d must divide a2+b2+(a−b)(a+b)=2a2
Similarly, d must divide a2+b2−(a−b)(a+b)=2b2
⟹d must divide (2a2,2b2)=2(a2,b2)
As (a,b)=1,(a2,b2)=1
The GCD will be 1 or 2 according as a,b are of opposite or same parity.
No comments:
Post a Comment