Assume that $a \equiv b \text{ (mod m)}$, the following: $$a^n\equiv b^n \text{ (mod m)}$$ is true.
However, does $a^n\equiv b^n \text{ (mod m)}$ imply that $a \equiv b \text{ (mod m)}$ is true when n is odd?
If n is odd, it seems like this is justifiable because negative numbers do not become positive numbers if raised to an odd power.
Also would it be true for when n is even if say $a^n\equiv b^n \text{ (mod m)}$ imply $a \equiv ±b \text{ (mod m)}$?
The above example by Lord Shark the Unknown indicates that no complete answer can be found. But sometimes, we do have that kind of higher cancellation:
We have, by telescopic sum, $$ a^n - b^n = (a - b) \sum_{j=0}^{n-1} a^{n-1-j}b^j, $$ so that $a^n \equiv b^n \mod m$ implies $a \equiv b \mod m$ if $$ \sum_{j=0}^{n-1} a^{n-1-j}b^j $$ is not a zero divisor.