(The other similar post didn't help in this case)
I understand that $5^{119}\equiv 7(\mod59)$, but how can I show that the answer is indeed $7$, and not for example $(7 - 59)$ or $(7 + 59)$?
Thank you.
(The other similar post didn't help in this case)
I understand that $5^{119}\equiv 7(\mod59)$, but how can I show that the answer is indeed $7$, and not for example $(7 - 59)$ or $(7 + 59)$?
Thank you.
Do you know Euler's theorem, or at least that for any integer $\;a\;$ and any prime $\;p\;$ we have that $\;a^p\equiv a \mod p\;$ ? If you do then it is easy ( the following is done modulo $\;59\;$):
$$119=59\cdot 2 +1\implies 5^{119}=5^{2\cdot 59+1}=\left(5^{59}\right)^2\cdot 5=5^2\cdot 5=125=59\cdot 2+7=7$$
Of course, any other answer equals $\;7+59k\;,\;\;k\in\Bbb Z\;$ , so there are infinite answers to that problem.