主題
Search

威爾遜定理


當且僅當 p 是一個 質數, 那麼 (p-1)!+1p 的倍數,也就是

 (p-1)!=-1 (mod p).
(1)

這個定理由約翰·威爾遜提出,並由瓦林 (1770) 發表,儘管萊布尼茨之前已經知道它。拉格朗日在 1773 年證明了它。與 費馬小定理 不同,威爾遜定理是素數的充分必要條件。對於合數, (n-1)!=0 (mod n) 除了當 n=4 時。

該定理的一個推論指出,當且僅當 一個 質數 p...形式的 4k+1, 那麼

 [(2k)!]^2=-1 (mod p).
(2)

前幾個 p=4k+1 形式的質數是 p=5, 13, 17, 29, 37, 41, ... (OEIS A002144), 對應於 k=1, 3, 4, 7, 9, 10, 13, 15, 18, 22, 24, 25, 27, 28, 34, 37, ... (OEIS A005098).

高斯對威爾遜定理的推廣考慮了 P(n) 小於等於且與整數 n 互質整數的乘積。對於 n=1, 2, ..., 前幾個值是 1, 1, 2, 3, 24, 5, 720, 105, 2240, 189, ... (OEIS A001783)。然後定義

 P(n)=product_(k=1; (k,n)=1)^nk
(3)

給出了同餘式

 P(n)={0 (mod 1)   for n=1; -1 (mod n)   for n=4,p^alpha,2p^alpha; 1 (mod n)   otherwise
(4)

對於 p 一個 奇質數。當 n=2 時,這簡化為 P=1 (mod 2) 這等價於 P=-1 (mod 2)。前幾個 P(n) (mod n) 的值是 0, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, ... (OEIS A103131).

Szántó (2005) 指出,定義

S(n)=2product_(k=1)^(n)sum_(i=1)^(k)i
(5)
=2^(1-n)n!(n+1)!,
(6)

那麼,取最小剩餘

 S(n)={(-1)^((n+2; 2)) (mod 2n+1)   for 2n+1 prime; 0 (mod 2n+1)   otherwise.
(7)

對於 n=0, 1, ..., 前幾項是 0, -1, 1, 1, 0, -1, 1, 0, -1, -1, 0, ... (OEIS A112448).


另請參閱

費馬小定理, 質數公式, 威爾遜質數

使用 探索

參考文獻

Ball, W. W. R. 和 Coxeter, H. S. M. Mathematical Recreations and Essays, 13th ed. New York: Dover, p. 61, 1987.Conway, J. H. 和 Guy, R. K. The Book of Numbers. New York: Springer-Verlag, pp. 142-143 和 168-169, 1996.Havil, J. Gamma: Exploring Euler's Constant. Princeton, NJ: Princeton University Press, p. 167, 2003.Hilton, P.; Holton, D.; 和 Pedersen, J. Mathematical Reflections in a Room with Many Mirrors. New York: Springer-Verlag, pp. 41-42, 1997.Nagell, T. "Wilson's Theorem and Its Generalizations." Introduction to Number Theory. New York: Wiley, pp. 99-101, 1951.Ore, Ø. Number Theory and Its History. New York: Dover, pp. 259-261, 1988.Séroul, R. "Wilson's Theorem." §2.9 在 Programming for Mathematicians. Berlin: Springer-Verlag, pp. 16-17, 2000.Shanks, D. Solved and Unsolved Problems in Number Theory, 4th ed. New York: Chelsea, pp. 37-38, 1993.Sloane, N. J. A. 序列 A001783/M0921, A002144/M3823, A005098, A103131, 和 A112448 在 "整數序列線上百科全書" 中。Szántó, S. "The Proof of Szántó's Note." http://www.dkne.hu/Proof.html.Waring, E. Meditationes Algebraicae. Cambridge, England: University Press, 1770.

在 中被引用

威爾遜定理

引用為

Weisstein, Eric W. "威爾遜定理。" 來自 Web 資源。 https://mathworld.tw/WilsonsTheorem.html

主題分類