Proving gcd(r,s)=1 with gcd(r^2-s^2, r^2+s^2)

  • Level: Undergrad 
  • Thread starter Thread starter awesome220
  • Start date Start date
  • Tags Tags
    Gcd
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 4K views
awesome220
Messages
4
Reaction score
0
Can anyone help me with this?

If gcd(r,s)=1 then prove that gcd(r^2-s^2, r^2+s^2)=1 or 2.

i'm so confused.
 
Physics news on Phys.org
awesome220 said:
Can anyone help me with this?

If gcd(r,s)=1 then prove that gcd(r^2-s^2, r^2+s^2)=1 or 2.

i'm so confused.

Suppose [itex]n|(r^2-s^2)[/itex] and [itex]n|(r^2+s^2)[/itex]. (This would be the case for the gcd of the two expressions.) Then there are some integers a, b with
[tex]an=r^2-s^2[/tex] and [tex]bn=r^2+s^2[/tex].
Then [itex](a+b)n=2r^2[/itex] and so n divides [itex]2r^2[/itex]. Does this help?
 
I understand, but how does that give us that gcd (r^2-s^2, r^2+s^2) = 1 or 2?