Problem

Source: Romania TST 1997

Tags: modular arithmetic, number theory solved, number theory, Divisibility, Multiplicative NT, Multiplicative order



Suppose that $A$ be the set of all positive integer that can write in form $a^2+2b^2$ (where $a,b\in\mathbb {Z}$ and $b$ is not equal to $0$). Show that if $p$ be a prime number and $p^2\in A$ then $p\in A$. Marcel Tena