求证wilson定理
楼主 · 1 楼
若P是prime number,则(P-1)!
-1(modP)
2 楼
The proof is alomst trivial. If p = 2, there is nothing to
prove.
Assume that p is an odd number.
First note that x^2 = 1 has only solutions 1 and -1
since Z_p is a field. Since the nonzero elements of Z_p form a group under
multiplication modulo p, every nonzero element has a nonzero mulitplicative
inverse, by pairing, we find (p-1)! = (-1) mod p.
Assume that p is an odd number.
First note that x^2 = 1 has only solutions 1 and -1
since Z_p is a field. Since the nonzero elements of Z_p form a group under
multiplication modulo p, every nonzero element has a nonzero mulitplicative
inverse, by pairing, we find (p-1)! = (-1) mod p.
3 楼
Alternative proof comes from 华罗庚 数论导引:
If p = 2, the proof is trivial. Assume p is an odd prime.
The Fermat's little theorem tells us that x^(p - 1) - 1 in Z_p[x] can be
factorized as (x - 1)(x - 2) ... (x - (p - 1)). Taking x = 0, we obtain
(p-1)! = -1 mod p.
If p = 2, the proof is trivial. Assume p is an odd prime.
The Fermat's little theorem tells us that x^(p - 1) - 1 in Z_p[x] can be
factorized as (x - 1)(x - 2) ... (x - (p - 1)). Taking x = 0, we obtain
(p-1)! = -1 mod p.
4 楼
谢谢.