MathOverflow will be down for maintenance for approximately 3 hours, starting Monday evening (06/24/2013) at approximately 9:00 PM Eastern time (UTC-4).
-1

Hi everyone! I have a problem in solving my number theory homework. My question is as follows:

If $n$ is a positive integer and if an integer $x$ exists such that $x^{n-1}= 1 mod n$ and $x^{\frac{n-1}{q}} =/= 1 \mod n$ for all prime divisors $q$ of $n-1$, then $n$ is prime.

Please edit my writing because I cannot install MathJax in my computer. Thank you for any help!

I believe we have to use some reasoning on the order of $x$, but I don't know where to start. Thanks!

PLease let me know why you closed my question? Thanks!

4 
MathOverflow is not for homework help. See the FAQ for suggestions of other sites to use - mathoverflow.net/faq#whatnot – François G. Dorais Mar 5 2011 at 4:31

locked by Ben Webster Mar 6 2011 at 3:58

closed as off topic by Andres Caicedo, François G. Dorais Mar 5 2011 at 4:30

Browse other questions tagged or ask your own question.