How to show $a^2+2b^2$=p has integer solutions for all primes p with $(\frac{−2}{p})=1$ (legendre symbol)
Partial solution:
$(\frac{−2}{p})=1$ $\Rightarrow$ p $\ |$ $a^2+2$=$(a-\sqrt{-2})$$(a+\sqrt{-2})$ (since $\mathbb{Z}[\sqrt{-2}]$ is UFD).
Hence, p $\ |$ $(a-\sqrt{-2})$ and $(a+\sqrt{-2})$ Thus, p $\ |$ $a-\sqrt{-2}-a+\sqrt{-2}$=$2\sqrt{-2}$ $\Rightarrow$ $Norm(p)\ | Norm(2\sqrt{-2})=8$ I have to find a contradiciton, from the norms. then, conclude that p is not irreducible. so reducible. but why?
Could you please clarify the points indicated.thank you.