Lably
Skip to content

Wilson's theorem

Theorem on prime numbers

  • 5 min read
  • 5 chapters

Related on Lably

Through Algebra, Natural number and Prime number

(n−1)!≡−1(modn)

exactly when n is a prime number. In other words, any integer n > 1 is a prime number if, and only if, (n − 1)! + 1 is divisible by n.

History

The theorem was first stated by Ibn al-Haytham c. 1000 AD. Edward Waring announced the theorem in 1770 without proving it, crediting his student John Wilson for the discovery. Lagrange gave the first proof in 1771. There is evidence that Leibniz was also aware of the result a century earlier, but never published it.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Number theory