I know how to get $99^{2} \mod 32$ from the $(99\mod32)(99\mod32)\mod32$ and get the answer. But the solution guide I have, has converted $$99^{2}\mod32$$ to $$3^{2}\mod32$$. Any idea how?
Asked
Active
Viewed 1,708 times
1
-
1Hint: $99 \equiv 3 \pmod{32}$. The square thing may seem obvious now, but you should try and prove it. – shardulc Aug 26 '16 at 23:36
-
Perhaps return to what it means to take $a\mod b$ – Simply Beautiful Art Aug 27 '16 at 00:02
-
See the Congruence Power Rule. – Bill Dubuque Aug 27 '16 at 01:39
3 Answers
3
We know that if $a \equiv b \mod n$, then $a^2 \equiv b^2 \mod n$. If you haven't learned this yet, maybe attempt a proof.
Since $99 \equiv 3 \mod 32$ , $99^2 \equiv 3^2 = 9 \mod 32$.

Sean Haight
- 1,368
-
1
-
thanks. I just didn't know the proposition. The proof seems straightforward. – Amir Qasemi Aug 27 '16 at 00:21
-
4More generally, if $a\equiv a'$ and $b\equiv b'$ modulo $n$, then $a+b\equiv a'+b'$ and $ab\equiv a'b'$, both modulo $n$. I frequently found, when teaching Algebra to college juniors, that it took a good while for the power of these facts to impress itself on them. – Lubin Aug 27 '16 at 01:31
0
Just as a more concrete representation, note that
\begin{align} 99^2 & = (3 \times 32 + 3)^2 \\ & = (3 \times 32)^2 + 2 (3)(3 \times 32) + 3^2 \\ & = (3 \times 3 \times 32 \times 32) + (2 \times 3 \times 3 \times 32) + 3^2 \\ & = (288 \times 32) + (18 \times 32) + 3^2 \\ & = (306 \times 32) + 3^2 \end{align}
and hence $99^2 \bmod 32 = 3^2 \bmod 32 = 9 \bmod 32 = 9$.

Brian Tung
- 34,160