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
Try our no ads browsing

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
Stories for Young
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

Sites for teachers
Sites for parents

Education & Parenting

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

Fermat's Little Theorem

It comes from observation of multiplication tables modulo prime number p that all rows are nothing but a permutation of the first row {1,2,...,p-1}. The same is true for the columns. Here I wish to verify that this is indeed so. The proof depends on the Euclid's Proposition VII.30

  If two numbers, multiplied by one another make some number, and any prime number measures the product, then it also measures one of the original numbers.

Let a be one of the positive remainders of division by p: 0 < a < p. I wish to prove that [a]p, [2a]p, [3a]p, ..., [(p-1)a]p are all different. Which, in terms of remainders, claims that in the sequence {a, 2a, 3a, ..., (p-1)a} no two numbers are congruent modulo p. Assume the opposite: let there be two numbers 1 ≤ m < n < p such that na = ma (mod p). This would imply that p|a(n-m). By the Proposition VII.30 either p|a or p|(n-m). But both a and (n-m) are positive integers less than p. So it can't divide either of them. Contradiction.

It indeed follows that the set {[a]p, [2a]p, [3a]p, ..., [(p-1)a]p} is just a permutation of the set

  {[1]p, [2]p, [3]p, ..., [p-1]p},

or that rows in the multiplication tables are just permutations of the first row.

If two sets are permutations of each other, then products of their elements are clearly equal:

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

Now, dividing by [(p-1)!]p (which is not 0 by Euclid's Proposition VII.30) gives 1 = [ap-1]p. Or, in terms of remainders,

  ap-1 = 1 (mod p)

Going over the proof we may notice that it's an overkill to require a to be less than p. The proof remains valid for any a not divisible by p.

The statement first appeared without proof in a letter dated October 18, 1640 that Fermat wrote to Frenicle de Bessy . The first proof was given by Leibniz (1646-1716) and the one above was found by Ivory in 1806. Euler proved the theorem in 1736 and its generalization in 1760. The theorem is now known as the Fermat's Little Theorem to distinguish it from the Fermat's Last or Great Theorem. The latter has been finally established by the Princeton mathematician Andrew Wiles (with assistance from Richard Taylor) in 1994.

Remark

The set {{[0]N, [1]N, [2]N, ..., [p-1]N} is an additive group. The set {[1]p, [2]p, [3]p, ..., [p-1]p} is a multiplicative group. For the latter we saw that to every element [a]p in the group, there corresponds a permutation

  {[a]p, [2a]p, [3a]p, ..., [(p-1)a]p}

of its elements. This relation is a group isomorphism: it preserves the group operation and is 1-1. A general statement, known as the Cayley's Theorem, asserts that this is a rule:

  Every group is isomorphic to a group of permutations.

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. Oystein Ore, Number Theory and Its History, Dover Publications, 1976

Copyright © 1996-2008 Alexander Bogomolny

30241009Page copy protected against web site content infringement by Copyscape


Search:
Keywords:



Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
3 messages
10:42 AM, Sep-25-08

Help me find Hisashi ABE, Pythago ...
Posted by likesmath
2 messages
11:11 AM, Oct-06-08

triangle construction
Posted by Elianto84
11 messages
12:20 PM, Oct-09-08

Interesting facts about hyperbolas
Posted by qwendy
1 messages
08:34 AM, Oct-08-08

Circles through the Orthocenter
Posted by Bui Quang Tuan
3 messages
09:08 AM, Sep-09-08

Vincenty Formulae & Common Tangen ...
Posted by Cathy Gordon
1 messages
12:26 PM, Oct-09-08

Possible mistake in "What Is Geom ...
Posted by David
1 messages
09:05 AM, Sep-25-08