Wilson's theorem
From Wikipedia, the free encyclopedia
Categories: Modular arithmetic | Prime numbers | Factorial and binomial topics | Mathematical theorems | Articles containing proofs
|
In mathematics, Wilson's theorem states that p > 1 is a prime number if and only if
HistoryThe theorem was first discovered by the Iraqi mathematician Ibn al-Haytham (known as Alhazen in Medieval Europe) circa 1000 AD, but it is named after John Wilson (a student of the English mathematician Edward Waring) who stated it in the 18th century.[1] Waring announced the theorem in 1770, although neither he nor Wilson could prove it. Lagrange gave the first proof in 1773. There is evidence that Leibniz was also aware of the result a century earlier, but he never published it. ProofsFirst proofThis proof uses the fact that if p is a prime, then the set of numbers G = (Z/pZ)× = {1, 2, ... p − 1} forms a group under multiplication modulo p. This means that for each element a in G, there is a unique inverse element b in G such that ab ≡ 1 (mod p). If a ≡ b (mod p), then a2 ≡ 1 (mod p), which forces a2 − 1 = (a + 1)(a − 1) ≡ 0 (mod p), and since p is prime, this forces a ≡ 1 or −1 (mod p), i.e. a = 1 or a = p − 1. In other words, 1 and p − 1 are each their own inverse, but every other element of G has a distinct inverse, and so if we collect the elements of G pairwise in this fashion and multiply them all together, we get the product −1. For example, if p = 11, we have
If p = 2, the result is trivial to check. For a converse (but see below for a more exact converse result), suppose the congruence holds for a composite n, and note that then n has a proper divisor d with 1 < d < n. Clearly, d divides (n − 1)! But by the congruence, d also divides (n − 1)! + 1, so that d divides 1, a contradiction. Second proofHere is another proof of the first direction: Suppose p is prime. Consider the polynomial
But since p is odd, the constant term of f(x) is just (p − 1)! + 1, and the result follows. ApplicationsWilson's theorem is useless as a primality test, since computing (n − 1)! is difficult for large n. Using Wilson's Theorem, we have for any prime p:
GeneralizationThere is also a generalization of Wilson's theorem, due to Carl Friedrich Gauss:
ConverseThe converse to Wilson's theorem states that for a composite number n > 5,
This leaves the case n = 4, for which 3! is congruent to 2 modulo 4. In fact if q is a prime factor of n, so that n = qa, the numbers
include a − 1 multiples of q. Therefore the power of q dividing the factorial is at least n/q − 1; and the power dividing n at most
The required inequality
does hold in general, except for the case q = 2 and n = 4. See alsoNotes
References
External linksca:Teorema de Wilson cs:Wilsonova věta da:Wilsons sætning de:Satz von Wilson es:Teorema de Wilson fr:Théorème de Wilson ko:윌슨의 정리 it:Teorema di Wilson hu:Wilson-tétel nl:Stelling van Wilson ja:ウィルソンの定理 pl:Twierdzenie Wilsona pt:Teorema de Wilson ru:Теорема Вильсона ro:Teorema lui Wilson fi:Wilsonin lause sv:Wilsons sats th:ทฤษฎีบทของวิลสัน vi:Định lý Wilson |


