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
Reciprocal links
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

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

28728512Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

drawing puzzle
Posted by martin gran
31 messages
06:53 PM, May-09-08

conway's game of life
Posted by frequency
0 messages
11:52 PM, May-12-08

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

Deriving functions based on diffe ...
Posted by ke_45
1 messages
12:47 PM, May-10-08

A typo in
Posted by alexwajn
1 messages
11:36 PM, Apr-19-08