Let $x$ and $n$ be integers, such that $\gcd(x,n)=1$. How do I prove that there is a positive integer $m<n$, such that $n\mid x^m-1$?
I'm supposed to prove this using Pigeonhole Principle, and I tried factoring $x^m-1$ and using Diophantine Equation, but I still didn't see how I could apply Pigeonhole here. Any hints would be appreciated.