For which $m$ does $x^n \equiv y^n \pmod{m}$ imply $x \equiv y \pmod{m}$?

44 Views Asked by At

How would I find, given an integer $n$, for which values of $m$ (also integer) does $x^n \equiv y^n \pmod{m}$ imply $x \equiv y \pmod{m}$?