Wilson's Theorem Proof Help for p-1 to p-r Modulo p

  • Thread starter tarheelborn
  • Start date
  • Tags
    Theorem
In summary, the conversation discusses how to prove the equation (p-1)(p-2)...(p-r)==(-1)^r*r!(mod p) for r=1, 2, ..., p-1. The key is to use Fermat's Little Theorem and define a polynomial that has all the roots as the values of x from 1 to p-1. By rearranging the factors and evaluating at zero, it can be shown that (p-1)! is congruent to (-1)^r mod p, leading to the desired result.
  • #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.
 
Physics news on Phys.org
  • #2
Well...first note that if you multiply out then every term in the resulting sum will be a multiple of p, and hence will disappear mod p. So all you really need to be concerned with is the constant term: (-1)(-2)...(-r).
 
  • #3
So something like
-1 * -2 * ... * -r == (-1)(-2)...(-r)(mod p)
== (-1)^r(1*28...*r)(mod p)
== (-1)^r * r! (mod p)
and we are done, right?

Thank you.
 
  • #4
By Fermat's Little Theorem, [tex]a^{p-1}-1\equiv 0[/tex] mod p. Define a polynomial [tex]p(x)=x^{p-1}-1[/tex], and note that [tex]q[/tex] is satisfied for x=1,2,...,p-1, and that these are all the roots.

So we can then write [tex]q(x)=(x-1)(x-2)\cdots(x-(p-1))[/tex]. By changing the order of subtraction in each factor, we can make a related polynomial [tex]q'(x)=(1-x)(2-x)\cdots((p-1)-x)=(-1)^{n-1}q(x)[/tex].

What happens when we evaluate at zero? [tex]q'(0)=(1)(2)\cdots(p-1)=(-1)^{n-1}q(0)=(-1)^n[/tex]. I.e., [tex](p-1)!\equiv(-1)^n[/tex] mod p.

It's a simple step from there to the result you need.
 
Last edited:
  • #5


Sure, I would be happy to provide some guidance for this proof. First, let's break down the given equation and understand what it means.

(p-1)(p-2)...(p-r) == (-1)^r*r!(mod p)

This equation is essentially stating that the product of (p-1)(p-2)...(p-r) is congruent to (-1)^r*r! (the factorial of r) modulo p. In other words, when we divide the product of (p-1)(p-2)...(p-r) by p, the resulting remainder will be equal to (-1)^r*r!.

To start the proof, let's consider the case when r=1. In this case, the equation becomes:

(p-1) == (-1)^1*1! (mod p)

We can simplify this to:

(p-1) == -1 (mod p)

This is true because when we divide (p-1) by p, the remainder will always be -1. This is because p is one more than a multiple of p, so when we subtract 1 from it, we get a multiple of p with a remainder of -1.

Now, let's move on to the case when r=2. The equation becomes:

(p-1)(p-2) == (-1)^2*2! (mod p)

Simplifying this, we get:

(p-1)(p-2) == 1*2 (mod p)

Again, this is true because when we divide (p-1)(p-2) by p, the remainder will always be 2. This is because p is two more than a multiple of p, so when we subtract 2 from it, we get a multiple of p with a remainder of 2.

We can continue this pattern for all values of r, and we will see that the equation (p-1)(p-2)...(p-r) == (-1)^r*r! (mod p) holds true for all values of r from 1 to p-1.

To formally prove this, we can use mathematical induction. We have already shown that the equation holds true for r=1 and r=2. Now, assuming that the equation holds true for some arbitrary value of r, we can show that it also holds true for r+1.

When r+1, the equation becomes:

(p-1)(
 

1. What is Wilson's theorem?

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.

2. How is Wilson's theorem related to p-1 to p-r modulo p?

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.

3. What are the steps for proving 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.

4. Can Wilson's theorem be extended to non-prime numbers?

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).

5. How is Wilson's theorem useful in mathematics?

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.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
858
Replies
4
Views
698
  • Linear and Abstract Algebra
Replies
17
Views
1K
Replies
2
Views
781
  • Linear and Abstract Algebra
Replies
2
Views
607
  • Linear and Abstract Algebra
Replies
6
Views
1K
  • Linear and Abstract Algebra
Replies
17
Views
4K
Replies
4
Views
1K
  • Linear and Abstract Algebra
Replies
11
Views
1K
  • Linear and Abstract Algebra
Replies
4
Views
767
Back
Top