0

Given that $a$ and $b$ are relatively prime and not both odd, prove that $a^2+b^2$ and $a^2-b^2$ are also relatively prime.

Truth-seek
  • 1,517

2 Answers2

2

The correct result is that $a^2+b^2$ and $a^2-b^2$ are relatively prime unless $a$ and $b$ are both odd.

If $a$ and $b$ are both odd, then $a^2+b^2$ and $a^2-b^2$ have g.c.d. $2$.

N.B. Any common divisor of $a^2+b^2$ and $a^2-b^2$ must divide both their sum, $2a^2$ and their difference, $2b^2$. Since $a$ and $b$ are coprime the only possibilities for the g.c.d. are $1$ and $2$.

0

The statement is invalid.

Let $a=x^2-1$ and $b=2x$. $$\begin{align} a^2+b^2 &=(x^2+1)^2 \\ a^2-b^2 &=(x^2-2x-1)(x^2+2x+1).\end{align}$$ When $x$ is odd, they have a common factor of $2$.


Whoops, didn't realise the question was edited until after.

Mr Pie
  • 9,726