Problem

Source:

Tags: floor function, function, pigeonhole principle, quadratics, modular arithmetic, algebra, domain



Let $A$ be the set of positive integers of the form $a^2 +2b^2$, where $a$ and $b$ are integers and $b \neq 0$. Show that if $p$ is a prime number and $p^2 \in A$, then $p \in A$.