- #1
tarheelborn
- 123
- 0
Show that (p-1)(p-2)...(p-r)==(-1)^r*r!(mod p) for r=1, 2, ..., p-1. I am having trouble getting this proof started. Can you please give me some direction? Thank you.
Wilson's theorem is a mathematical theorem that states that if p is a prime number, then (p-1)! ≡ -1 (mod p), where ≡ denotes congruence. This means that when we divide (p-1)! by p, the remainder will always be -1.
The proof for Wilson's theorem involves using p-1 to p-r modulo p. This is because we can rewrite (p-1)! as (p-1)(p-2)...(p-r)(p-r-1)...2*1. Using the fact that p ≡ 0 (mod p), we can rewrite this expression as (-1)(-2)...(-r)(-r-1)...(-p+1) ≡ (-1)^r*r!(p-r)(p-r-1)...2*1 (mod p). This shows that (p-1)! ≡ (-1)^r*r!p-1 (mod p), which is equivalent to Wilson's theorem.
To prove Wilson's theorem, we first need to show that (p-1)! ≡ (-1)^r*r!p-1 (mod p), using the steps mentioned in question 2. Then, we can rewrite this expression as (p-1)! ≡ (p-1)(p-2)...(p-r)(p-r-1)...2*1 (mod p). Finally, we can use the fact that p ≡ 0 (mod p) to show that (p-1)! ≡ -1 (mod p), which proves Wilson's theorem.
No, Wilson's theorem only holds for prime numbers. This is because for composite numbers, the expression (p-1)! can be reduced to a smaller number before reaching -1 (mod p).
Wilson's theorem has many applications in number theory and cryptography. It can be used to test for primality of large numbers, generate prime numbers, and prove other theorems in number theory. It is also used in some encryption algorithms, making it an important tool in modern cryptography.