-1

If $\gcd(a,b)=1$, show that $\gcd(a^2-b^2,a^2+b^2) = 1 \text{ or } 2$.

I tried this: $\gcd(a,b) = 1$.

Then, $\gcd(a^2, b^2)=1$.

Now, $a^2+b^2$ is divisible by $2$, and $a^2-b^2$ also divisible by $2$. So $2$ is a gcd of $a^2-b^2$ and $a^2+b^2$.

But what about $2$ or $1$?

amWhy
  • 209,954
  • Do you mean $\gcd(a^2-b^2, a^2+b^2)$? –  Jun 09 '18 at 18:30
  • Yes if $gcd(a,b)=1$ then $gcd(a^2-b^,a^2+b^2)=1$ – user8933 Jun 09 '18 at 18:30
  • You wrote $a^2-b$ instead of $a^2-b^2$ –  Jun 09 '18 at 18:30
  • Oh I am sorry you are right – user8933 Jun 09 '18 at 18:31
  • 1
    Your attempt is incorrect for a couple reasons.
    • You say that $a^2 + b^2$ is divisible by $2$. It isn't, as the example of an even $a$ and odd $b$ will show you. Likewise, $a^2 - b^2$ need not be divisible by $2$.

    • You say that $2$ is a gcd, but this doesn't make sense. There is one and only one greatest common divisor. Had your work up to here been correct you could say that $2$ is a common divisor, but not more.

    –  Jun 09 '18 at 18:36
  • Why does the title say "then $\gcd(a^2 - b^2, a^2 + b^2) = 1$"? It could be $2$. . .... Um.... what is your question exactly? – fleablood Jun 09 '18 at 18:54

3 Answers3

0

Using the fact that $\gcd(p,q) = \gcd(p, q \pm p)$,

$$\gcd(a^2-b^2, a^2+b^2) = \gcd(a^2-b^2, 2a^2)$$

If $a^2-b^2$ is odd, then

$$\gcd(2a^2, a^2-b^2) = \gcd(a^2, a^2-b^2) = \gcd(a^2, -b^2) = \gcd(a, -b) = 1.$$

Otherwise, if $a^2-b^2$ is even, then

$$\gcd(2a^2, a^2-b^2) = 2\gcd(a^2, a^2-b^2) = 2\gcd(a^2, -b^2) = 2\gcd(a, -b) = 2.$$

0

Any prime power dividing $a^2\pm b^2$ divides $2a^2,\,2b^2$, so would be $1$ or $2^1$.

J.G.
  • 115,835
0

Oh, just throw rocks at it.

$\gcd(x,y) = \gcd(x, x \pm y)$ so we can get:

$\gcd(a^2 -b^2, a^2 + b^2) = \gcd(a^2 -b^2, 2a^2)$

Ane $\gcd(a^2 -b^2, a^2 +b^2) = \gcd(a^2-b^2, 2b^2)$

$=\gcd(a^2 +b^2, 2a^2) = \gcd(a^2 + b^2, 2b^2)$.

So if $K = \gcd(a^2 - b^2, a^2 + b^2)$ then $K|2b^2$ and $K|2a^2$ but $a$ and $b$ have no factors in common so $K|2$ so $K = 1$ or $K = 2$.

fleablood
  • 124,253