play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Wilson's Theorem

Wilson's Theorem is another consequence (Fermat's Little Theorem being one) of the Euclid's Proposition VII.30. As we have noticed,

  In the multiplication tables for prime p's, 1 always appears in the upper left and lower right corners and nowhere else on the main diagonal.

In algebraic terms this fact is expressed as

  Equation n2 = 1 (mod p) has, for a prime p, two and only two solutions: n = 1 and n = p -1.

Indeed, n2 = 1 (mod p) implies that p|(n2 - 1), or p|(n - 1)(n + 1). By the Proposition VII.30 either p|(n - 1) in which case n = 1 (mod p), or p|(n + 1) and then n = p -1 (mod p).

Now, as we already remarked, multiplication by [a]p permutes the set {[1]p, [2]p, [3]p, ... [p-1]p}. This means that for every [a] different from either [1] or [p-1] there exists [b] ≠ [a] such that [a][b] = [1]. The significance of the fact that [b] ≠ [a] lies in that all classes from {[2]p, [3]p, ..., [p-2]p} can be split into pairs whose product is [a][b] = [1]. Therefore,

  [(p -1)!]p = [1]p·[2]p·[3]p· ... ·[p-1]p = [1]p·[p-1]p = [p-1]p

which is most often written as

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

Yet another way of writing it is p|(1·2·3·...·(p -1) + 1) which simply says that (p -1)! + 1 is divisible by p and is reminiscent of the Euclid's proof of the infinitude of primes. In fact this is how the theorem (a conjecture at the time) first appeared in the first edition (1770) of Meditationes Algebraicae by Edward Waring. Waring ascribed the result to a student of his John Wilson. Waring gave a proof of the theorem in the third edition of Meditationes Algebraicae in 1782. However the first published proof was given by J. L. Lagrange yet in 1770 [Hilton, p. 41, Ore, p. 259].

For composite moduli, the Wilson's formula fails. Instead we have

  If n>4 is a composite integer then (n - 1)! = 0 (mod n).

Assuming n = PQ, where P ≤Q and each greater than 1, we note that both P and Q appear as multiples in (n - 1)! which is, therefore, is divisible by n. If P = Q, then n = P2 and 1 < P < 2P < P2 = n provided n>4.

Thus, at least in principle, Wilson's Theorem can be used to establish primality of a given number.

References

  1. J. H. Conway and R. K. Guy, The Book of Numbers, Springer-Verlag, NY, 1996.
  2. H. Davenport, The Higher Arithmetic, Harper&Brothers, NY
  3. R. Graham, D. Knuth, O. Patashnik, Concrete Mathematics, 2nd edition, Addison-Wesley, 1994.
  4. P. Hilton, D. Holton, J. Pederson, Mathematical Reflections, Springer Verlag, 1997
  5. R. Honsberger, Mathematical Gems II, MAA, 1976
  6. O. Ore, Number Theory and Its History, Dover Publications, 1976

Copyright © 1996-2008 Alexander Bogomolny

29436831Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
0 messages
07:05 AM, Jul-10-08

Monty Hall Problem
Posted by linkdon
72 messages
06:07 PM, Jul-24-08

Missing information
Posted by roboknight
2 messages
07:32 AM, Jun-22-08

Can You See The Patterns..?
Posted by wustvn
0 messages
10:08 AM, Jul-23-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Central Limit Theorem proof problem
Posted by Manuel
1 messages
01:54 PM, Jul-22-08

You can drill a square hole
Posted by Giorgis
1 messages
10:15 PM, Jul-12-08