Elementary Number Theory: Wilson's Theorem

In summary, the conversation revolves around proving that p is the smallest prime that divides (p-1)!+1, and the use of congruences and inverses to prove this statement. The conversation also discusses the role of other primes q < p and their relationship to p in the proof.
  • #1
cwatki14
57
0
I am aiming to prove that p is the smallest prime that divides (p-1)!+1. I got the first part of the proof. It pretty much follows from Fermat's Little Theorem/ Wilson's Theorem, but I am stuck on how to prove that p is the smallest prime that divides (p-1)! +1. I am assuming that every other prime divisor of (p-1)!+1 is related to p by some congruence? Any ideas how to prove this tidbit? - Thanks
 
Physics news on Phys.org
  • #2
Let q < p be a prime. Now what can you say about the congruence [itex]\left(p-1\right)!\equiv -1\left(\rm{mod} q\right)[/itex]?
 
  • #3
JSuarez said:
Let q < p be a prime. Now what can you say about the congruence [itex]\left(p-1\right)!\equiv -1\left(\rm{mod} q\right)[/itex]?

If q< p then q does q no longer divides (p-1)!+1? If a prime is larger than p then does it also not divide (p-1)!+1?
 
  • #4
You have proved that p is a divisor of (p-1)!+1. Now you want to prove that it is the smallest prime divisor of that quantity, so let's stick with a prime q < p. What does the congruence that I wrote in the first post reduces to?
 
  • #5
so when you pair each term with an inverse everything equals out to one 1x1x(p-1) but when q<p all of these pairs of inverses don't cancel? are there still terms on one of the sides of the congruence?
 
  • #6
If q < p, is q a factor of (p-1)!? If yes, what happens when you reduce mod q?
 

Related to Elementary Number Theory: Wilson's Theorem

What is Wilson's Theorem and why is it important in elementary number theory?

Wilson's Theorem states that if p is a prime number, then (p-1)! + 1 is divisible by p. This theorem is important in elementary number theory because it provides a necessary and sufficient condition for a number to be prime, and it is also used in the proof of many other theorems in number theory.

How do you prove Wilson's Theorem?

To prove Wilson's Theorem, we use the fact that every integer has a unique multiplicative inverse modulo p if and only if p is a prime number. Then, we can show that (p-1)! is congruent to -1 modulo p, which means that (p-1)! + 1 is divisible by p.

What is the significance of (p-1)! in Wilson's Theorem?

The significance of (p-1)! in Wilson's Theorem is that it represents the product of all the positive integers less than p. This product is important because it has a special relationship with prime numbers, as shown in the proof of the theorem.

How is Wilson's Theorem used in cryptography?

In cryptography, Wilson's Theorem is used as a primality test to determine whether a number is prime or not. This is because the theorem provides a necessary and sufficient condition for a number to be prime, making it a useful tool for determining the primality of large numbers.

Are there any limitations to Wilson's Theorem?

Yes, there are some limitations to Wilson's Theorem. It only applies to prime numbers, so it cannot be used to determine the primality of composite numbers. Additionally, it can be computationally expensive to use as a primality test for very large numbers. Other methods, such as the AKS primality test, are more efficient for larger numbers.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
24
Views
896
  • Calculus and Beyond Homework Help
Replies
4
Views
977
  • Calculus and Beyond Homework Help
Replies
5
Views
123
  • Linear and Abstract Algebra
Replies
2
Views
871
  • Set Theory, Logic, Probability, Statistics
Replies
18
Views
615
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Replies
1
Views
817
  • Calculus and Beyond Homework Help
Replies
2
Views
979
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
Back
Top