suppose $a = np +r$ where $n$ is an integer, $p$ is a prime, $r$ is the remainder. So, $ a \bmod b ≡ r$.
Is $(a \bmod b)^2 = a^2 \bmod b^2$?
I was told this is correct, and can't prove it. (I don't want $a^2 \bmod b$, I am aware they mean different things).
$(a \bmod b)^2 $
$≡ (np +r)^2 $
$= (np)^2 + 2npr + r^2 $
$≡ 2npr + r^2 \bmod p^2 $
$\neq r^2 \bmod p^2 .$
\bmod). – Bernard Sep 06 '19 at 16:13amsmathdefines three cultivars. – Bernard Sep 06 '19 at 16:17