Prove Wilson's theorem by Lagrange's theorem

  • Context: Graduate 
  • Thread starter Thread starter kingwinner
  • Start date Start date
  • Tags Tags
    Theorem
Click For Summary

Discussion Overview

The discussion revolves around the proof of Wilson's theorem using Lagrange's theorem, focusing on the implications of polynomial roots in modular arithmetic. Participants explore the reasoning behind the proof and clarify the conditions under which certain statements hold.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • Post 1 presents Lagrange's theorem and proposes a polynomial f(x) to prove Wilson's theorem, stating that if f has at least p-1 roots mod p, it leads to a contradiction unless f(x) ≡ 0 (mod p).
  • Post 1 questions the reasoning behind the contradiction and the justification for substituting x=0 in the proof.
  • Post 2 asserts that a polynomial with at most p-2 roots that has p-1 roots must be identically zero.
  • Post 3 challenges the reasoning behind the assertion in Post 2, emphasizing the contradiction in the statement.
  • Post 4 clarifies that Lagrange's theorem applies to nontrivial polynomials and suggests that the polynomial must be trivial if it has more roots than allowed, prompting a discussion on the implications for f(0) (mod p).
  • Post 5 indicates a participant's understanding of the discussion, suggesting some resolution to their confusion.

Areas of Agreement / Disagreement

Participants express differing views on the implications of the polynomial's roots and the reasoning behind the proof. There is no consensus on the justification for certain steps in the proof, and the discussion remains unresolved regarding the clarity of the reasoning.

Contextual Notes

Participants highlight the need for clarity in the application of Lagrange's theorem and the conditions under which the polynomial is considered nontrivial. The discussion reflects uncertainty about the implications of having more roots than allowed by the theorem.

kingwinner
Messages
1,266
Reaction score
0
Lagrange's Theorem: let p be any prime and f(x) = a_nx^n +a_{n-1}x^{n-1} + ... + a_1x + a_0 with a_n ≡/≡ 0 (mod p). Then f(x) ≡ 0 (mod p) has at most n solutions.

Use the above theorem to prove Wilson's theorem.
Hint: Let f(x) = (x-1)(x-2)...(x-(p-1)) - (x^{p-1} - 1) for an odd prime p.

Proof:
Expanding,
f(x) = (x-1)(x-2)...(x-(p-1)) - (x^{p-1} - 1)
= a_{p-2}x^{p-2} +...+ a_1x + a_0 where the a_i are some coefficients
By the above theorem, f has at most p-2 roots mod p IF a_{p-2} ≡/≡ 0 (mod p). (*)
But by Fermat's theorem, for a=1,2,...,p-1, a^{p-1} -1 ≡ 0 (mod p).
So for a=1,2,...,p-1, f(a) ≡ 0 (mod p).
So f has at least p-1 roots mod p. (**)
(*) and (**) contradict unless f(x) ≡ 0 (mod p). Therefore, we must have f(x) ≡ 0 (mod p).
=> f(0)=(-1)(-2)...(-(p-1)) - (-1) ≡ 0 (mod p)
=> (-1)^{p-1} (p-1)! + 1 ≡ 0 (mod p)
For odd primes p, p-1 is even, so (p-1)! ≡ -1 (mod p)
(For p=2, check directly.)
=========================================

I don't understand the two lines in red.
I understand that there is a contradiction, but why does this imply that f(x) ≡ 0 (mod p)? Why in this case, there will be no contradiction? I'm totally lost here...

Also, f(x) ≡ 0 (mod p) doesn't necessarily mean it holds for EVERY integer x, so why can we substitute x=0 and say that f(0) ≡ 0 (mod p)? What is the justification for this step?

I hope someone can explain this proof.
Thank you very much!

[also under discussion in math help forum]
 
Physics news on Phys.org
If a polynomial with at most p-2 roots has, in fact, p-1, then it must be identically 0.
 
JSuarez said:
If a polynomial with at most p-2 roots has, in fact, p-1, then it must be identically 0.

Why? What is the reasoning?
Polynomial with at most p-2 roots has, in fact, p-1 roots <----this is already a contradiction. The statement is inconsistent...
 
Because the complete statement of Lagrange's theorem, is that, if f(x) is a nontrivial (not identically 0) polynomial with degree n, then it has at most n roots (mod p).

This doesn't happen with your polynomial, so it must be the trivial one. What does this imply for f(0)(mod p)?
 
Last edited:
Thanks! I think I got it!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
Replies
48
Views
6K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K