/blog/math

A math problem

Prove that Consider the set of nonzero residue classes modulo p: Define the map f:S→S by Since p∤x, we have gcd(x,p)=1, so x is invertible modulo p. Hence f is a permutation of S. Therefore Thus…

W WillZhong RichMan 11 views — min read math mathematics number-theory congruence prime-numbers

Prove that

\[ \forall p \in \mathcal P, \forall x \in \{x|p\nmid x\ \text{and } x \in N^*\}, x^{p-1} \equiv 1 \pmod p \]

Consider the set of nonzero residue classes modulo p:

\[ S=\{1,2,\dots,p-1\}. \]

Define the map f:S→S by

\[ f(a)\equiv xa\pmod p. \]

Since p∤x, we have gcd(x,p)=1, so x is invertible modulo p. Hence f is a permutation of S. Therefore

\[ \prod_{a=1}^{p-1}a\equiv \prod_{a=1}^{p-1}(xa) = x^{p-1}\prod_{a=1}^{p-1}a \pmod p. \]

Thus

\[ (p-1)!\equiv x^{p-1}(p-1)!\pmod p. \]

Because p is prime, none of 1,2,…,p−1 is divisible by p, so

\[ \gcd((p-1)!,p)=1. \]

Hence $(p-1)!$ is invertible modulo $p$, and we may cancel it from both sides. This gives

\[ x^{p-1}\equiv 1\pmod p. \]

Therefore

\[ \boxed{\forall p\in\mathcal P,\ \forall x\in\mathbb Z\text{ with }p\nmid x,\quad x^{p-1}\equiv 1\pmod p.} \]

math mathematics number-theory congruence prime-numbers
All articles
Comments

0 条讨论

Please sign in to join the conversation.

No comments yet. Be the first to share.