I know that $\forall{k}\in\mathbb{N}: a \equiv b \pmod m \implies a^k \equiv b^k \pmod m$.
But the converse is not always true.
A few simple counterexamples:
- $2^2 \equiv 1^2 \pmod 3$
- $2^3 \equiv 1^3 \pmod 7$
I am wondering if there are any theorems where the converse actually holds with some particular conditions being imposed on the variables.
I tried googling but hadn't found anything useful on it yet.