0

Can you help me prove this number theory claim:

If p is a prime, p divides $a^2+b^2$ and p divides $a^2$, then p divides $b^2$

Thanks

amWhy
  • 210,739
  • 3
    The squares are maybe there just to add some confusion. Try ignoring them for a moment and see whether the question looks easier. – badjohn May 19 '17 at 17:46
  • 2
    You don't even need $p$ to be prime. It's all red herrings. – Arthur May 19 '17 at 17:48

2 Answers2

2

Badjohn is right: If $kp=a^2+b^2$ and $mp=a^2$ for some integers $k$ and $m$, then $(k-m)p=b^2$.

Wuestenfux
  • 21,302
0

$p|a^2+b^2-a^2=b^2$

Especially $p|b$