Professional Documents
Culture Documents
Mathmdmb
April 19, 2011
1 Notations
• N = {1, 2, 3, . . . , n, . . .} : the set of positive integers.
• nk = (n−k)!k!
n!
: n choose k.
1
2 Proof Of Theorem
Theorem. If f (x) = (x + 1)(x − 2) · · · (x + p − 1) = xp−1 + a1 xp−2 + · · · +
ap−2 x + (p − 1)!, then the coefficients a1 , ....., ap−2 are divisible by p where p odd
prime.
Let’s apply this for a prime p and i ∈ N, 0 < i < p. It follows that
p p p−1
=
i i i−1
p
But gcd(p, i) = 1∀i, 0 < i < p since p is co-prime to p − 1, ....,
1. Also, i is
p
obviously a positive integer. Therefore, we conclude that p| i .
Thus, the lemma is proven.
Come back to the theorem. Note that :
f (x + 1) = (x + 2)......(x + p)
So,
(x + p)f (x) = (x + 1)f (x + 1)
=⇒ pf (x) = (x + 1)f (x + 1) − xf (x)
Hence, it follows that :
= (x+1)p +a1 (x+1)p−1 +......+ap−2 (x+1)2 +(x+1)(p−1)!−(xp +a1 xp−1 +.....+ap−2 x2 +x(p−1)!)
2
p p−1 p−2
pa2 = + a1 + a2
3 2 1
···············
p p−1 2
pap−2 = + a1 + ..... + ap−2
p−1 p−2 1
So, applying the lemma above, from the first equation p|a1 .
Likewise, it easily follows that :
Let’s note a special property of the theorem (which we shall apply to prove
Wolstenholme’s Theorem).
a1 = 1 + 2 + ...... + p − 1
·····················
ap−2 = sum of the product of the numbers 1, 2, ......., p−1 taken p−2 at a time.
3
3 Applications
It’s the time to see some applications. Actually these proofs will be a bit straight
forward. The Lagrange’s theorem is in fact an identity. So, we shall set different
values of x in the identity and see what happen.
Wilson’s Theorem :
This is another useful theorem in congruence.
Theorem. For any prime p,
(p − 1)! ≡ −1 (mod p)
Proof. First see the case p = 2, then 1! ≡ −1 (mod 2). Consider p odd.
Plug x = 1, we get,
p! = 1 + a1 + ...... + (p − 1)!
Of-course, p|p! and also from the theorem, p|a1 , · · · , ap−2 . So, we must have
p|(p − 1)! + 1
(p − 1)! ≡ −1 (mod p)
Fermat’s Little Theorem :
Probably, Fermat’s little theorem is the most important theorem in congruence
or divisibility. In fact, it is the first non-trivial theorem in congruence. The
word ‘little’ is only to distinguish this from Fermat’s Last theorem.
ap ≡ a (mod p)
If gcd(a, p) = 1, then,
ap−1 ≡ 1 (mod p)
Proof. We shall only consider gcd(a, p) = 1.
Since a, a + 1, ......, a + p − 1 are p consecutive integers, one of them is divisible
by p. We also have p 6 |a. According to the theorem,
Then, p|ap−1 + (p − 1)!. Using Wilson’s theorem we have proved above, gives
us p|ap−1 − 1.
4
Wolstenholme’s Theorem :
2
is divisible by p .
Proof. From the property we noted in section 2, the numerator of the fraction
ap−2
is actually (p−1)! .
Put, x = −p in the identity and we obtain
This is reduced to
Obviously, p2 |pp−j ∀1 < j < p − 1, p > 3 and since p|ap−i ∀1 < i < p − 1, it
follows that,
p2 |ap−2 ∀p > 3.
The theorem is therefore proved.
5
4 Alternative Proof Of Lagrange’s Theorem
For this alternative proof, we shall use Fermat’s little theorem and Wilson’s
theorem. So, definitely, we need to prove this in another way first. Let’s proceed
on.
Fermat’s Little Theorem :
Let, a be a positive integer and p prime. If p|a, we are done since p|ap − a. Let’s
see the case when gcd(a, p) = 1.
Lemma. If Cp = {a1 , a2 , · · · , ap−1 } is a complete set of residue class modulo
p, then {aa1 , aa2 , · · · , aap−1 } is a permutation of Cp i.e. it is also a complete
set of residue class modulo p.
Proof. For the sake of contradiction, let’s assume that there exists i, j ∈ Cp
such that i 6= j and ai ≡ aj (mod p). Since gcd(a, p) = 1, we can divide this
congruence relation by a. Then i ≡ j (mod p). But |i − j| < p which would
imply that i = j, contradiction!
Now, according to the lemma, for Cp , aCp is a complete set of residue class
modulo p. We have,
a · 2a · · · · (p − 1)a ≡ 1 · 2 · · · (p − 1) (mod p)
Wilson’s Theorem :
Since 1! ≡ −1 (mod 2), we may assume that p odd prime.
In this case, we prove the lemma below first.
Lemma. For all 1 < x < p − 1, there exists a unique 1 < y < p − 1 such that
xy ≡ 1 (mod p)
Proof. Since gcd(x, p) = 1, from Bezout’s identity, there exists integers y, w such
that xy − pw = 1. Taking modulo p in the equation, we have xy ≡ 1 (mod p).
Now, let’s prove that this y is unique. If y is not unique, then say there exists
y1 , y2 ∈ Cp such that
xy1 ≡ xy2 (mod p)
=⇒ x(y1 − y2 ) ≡ 0 (mod p)
=⇒ y1 − y2 ≡ 0 (mod p)
Since |y1 − y2 | < p, y1 − y2 must be 0 or y1 = y2 . Also, note that x 6= y.
Otherwise, we would have p|(x + 1)(x − 1). Here, p|x + 1 or p|x − 1. Because, if
p|x + 1 and p|x − 1, then p|x + 1 − (x − 1) = 2 too. But p odd. Contradiction!
Therefore, the lemma is true.
Now, we may pair up all p − 3 elements of Cp ( i.e. except 1, p − 1 ) into p−3
2
6
pairs such the product of every pair yields a remainder 1 upon division by p.
So, it is obvious that we shall finally get,
p−3
1 · 2 · · · · (p − 1) ≡ 1 · 1 2 · (p − 1) (mod p)
=⇒ (p − 1)! ≡ −1 (mod p)
The proof is complete.
xp−1 − 1 ≡ (x − 1) · (x − 2) · · · · · · · · · (x − p + 1) (mod p)
Let,
Since this is an identical congruence, using both Fermat’s theorem and Wilson’s
theorem, we must have
p|a1 , a2 , · · · , ap−2
Proof. Since d|p − 1, we conclude that xp−1 − 1 = (xd − 1) · g(x) where g(x) is
a polynomial of degree p − 1 − d. Then,
has exactly p − 1 solutions, and because g(x) has degree p − 1 − d, the number
of possible values for which (?) has solutions is of-course p − 1 − (p − 1 − d) = d.
7
Theorem. If f (x) is a polynomial of degree k < p, then f (x) ≡ 0 (mod p) can
have at most k mutually in-congruent solutions.
Proof. It is almost obvious now.
Note. Here it is assumed that f (x) is not identically congruent to 0 modulo p.
References
[1] AoPS topic #389013, Coefficient of Polynomial, posted by vladimir92.
http://www.artofproblemsolving.com/Forum/viewtopic.php?f=56t=389013
[2] AoPS blog #85314, The Law Of Nature Number Theory, posted by
mathmdmb.
http://www.artofproblemsolving.com/Forum/blog.php?u=85314b=47593