Skip to main content

Fermat’s Little Theorem

  • Reference work entry

Related Concepts

Euler’s Totient Function; Fermat Primality Test; Modular Arithmetic; Number Theory; Prime Number

Definition

Fermat’s little theorem states that if p is a prime number and a is any number not divisible by p, then \({a}^{p-1} \equiv 1 \mathbin{\rm mod}\,\,p\).

Background

Pierre de Fermat (1601–1665) was one of the most renowned mathematicians in history. He focused much of his work on Number Theory, though he made great contributions to many other areas of mathematics. Fermat’s famous “last theorem” was a remark Fermat made in a margin of a book, for which he claimed to have a proof but the margin was too small to write it down, and remained an open problem for over three centuries.

Fermat’s little theorem was first stated in a letter to Frénicle de Bessy in 1640, though it was not called “Fermat’s little theorem” until the twentieth century.

Theory

The proof follows easily from the following observations. Consider the product \((a)(2a)(3a)\ldots ((p - 1)a)\), then on...

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   799.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   949.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Recommended Reading

  1. Conway JH, Guy RK (1996) The book of numbers. Springer, New York

    MATH  Google Scholar 

  2. Hardy GH, Wright EM (2008) An introduction to the theory of numbers. Oxford University Press, New York

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer Science+Business Media, LLC

About this entry

Cite this entry

Liskov, M. (2011). Fermat’s Little Theorem. In: van Tilborg, H.C.A., Jajodia, S. (eds) Encyclopedia of Cryptography and Security. Springer, Boston, MA. https://doi.org/10.1007/978-1-4419-5906-5_449

Download citation

Publish with us

Policies and ethics