2
$\begingroup$

Problem:
If $x^{n-1} \equiv 1 \pmod{n}$, and for all divisors $q$ of $n - 1$, $a^{q} \not\equiv 1 \pmod{n}$, then $n$ is prime. $(n > 1)$

I read the proof in the book and it was very straightforward; however, I wonder is there a way to prove it by just using congruence property?

And another related question about power residue:
If we have $a^{n - 1} \equiv 1 \pmod{n}$. Is there any relation between $n - 1$ and $\phi(n)$? Because I thought of $a^{\phi(n)} \equiv 1 \pmod{n}$, when $(a, n) = 1$. I try to think of away to connect these two ideas, but I still cannot see it.
Any idea?

Thanks,

2 Answers 2

0

Hint $ $ The conditions imply that the order $\,k\,$ of $\,x\,$ is a divisor of $\,n-1\,$ but not a proper divisor, hence $\, k = n-1.\, $ By here and Euler, $\,n-1\mid \phi(n)\ $ so $\ n-1\, \le\, \phi(n).\, $ This implies $\,n\,$ is prime, since $\ \phi(n) \,\le\, n-\color{red}{2}\ $ for composite $\,n,\,$ having at least $\color{red}2\,$ smaller naturals non-coprime to $\,n.$

Optimization $ $ We can we can restrict to maximal proper divisors $\,q\,$ using the following.

Order Test $\ \,a\,$ has order $\,n\iff a^n \equiv 1\,$ but $\,a^{n/p} \not\equiv 1\,$ for every prime $\,p\mid n.\,$

Proof $\ (\Leftarrow)\ $ If $\,a\,$ has $\,\color{#c00}{{\rm order}\ k}\,$ then $\,k\mid n\,$ (proof). If $\:k < n\,$ then $\,k\,$ is proper divisor of $\,n\,$ therefore $\,k\,$ arises by deleting at least one prime $\,p\,$ from the prime factorization of $\,n,\,$ hence $\,k\mid n/p,\,$ say $\, kj = n/p,\ $ so $\ a^{n/p} \equiv (\color{#c00}{a^k})^j\equiv \color{#c00}1^j\equiv 1,\,$ contra hypothesis. $\ (\Rightarrow)\ $ Clear.

  • 0
    $I$'m currently reading "$E$lemen$t$ary Number Theory and $I$ts application" by Kenneth H. Rosen 6th edition. Thanks.2011-03-10
0

Do you understand the definition of $\phi(n)$? It's the number of natural numbers less than $n$ which are relatively prime to $n$. If $n$ is prime, then $\phi(n)$ is necessarily $n-1$ (since only 1 is relatively prime with $n$). Likewise, if $\phi(n) = n-1$ then only one number less than $n$ is relatively prime to it, which must be the number 1, so $n$ is prime. So that would be the relationship between them.

  • 0
    Yeah, I meant to say "less than n which are relatively prime to n", I just had a little brain-fart and typed "divides" instead. And you're also correct about the second mistake. Clearly I wasn't at my best. I'll edit the answer substantially.2011-03-11