We have an integer $n$ which is not a perfect square and $p^{a} \mid\mid n$ for some $a \geq 1$. I was wondering if $n$ can be a square modulo all powers of $p$?
My strong feeling is that the answer is NO but how do I prove it?
We have an integer $n$ which is not a perfect square and $p^{a} \mid\mid n$ for some $a \geq 1$. I was wondering if $n$ can be a square modulo all powers of $p$?
My strong feeling is that the answer is NO but how do I prove it?
Yes, it’s possible if $a$ is even (and impossible if $a$ is odd). For example $-25$ is a square modulo all powers of $5$ (use Hensel’s lemma).
This condition is equivalent to asking whether $n$ is a square in the $p$-adic integers $\mathbb{Z}_p$.