當且僅當
是一個 質數, 那麼
是
的倍數,也就是
 |
(1)
|
這個定理由約翰·威爾遜提出,並由瓦林 (1770) 發表,儘管萊布尼茨之前已經知道它。拉格朗日在 1773 年證明了它。與 費馬小定理 不同,威爾遜定理是素數的充分必要條件。對於合數,
除了當
時。
該定理的一個推論指出,當且僅當 一個 質數
是 ...形式的
, 那麼
![[(2k)!]^2=-1 (mod p).](/images/equations/WilsonsTheorem/NumberedEquation2.svg) |
(2)
|
前幾個
形式的質數是
, 13, 17, 29, 37, 41, ... (OEIS A002144), 對應於
, 3, 4, 7, 9, 10, 13, 15, 18, 22, 24, 25, 27, 28, 34, 37, ... (OEIS A005098).
高斯對威爾遜定理的推廣考慮了
小於等於且與整數
互質的整數的乘積。對於
, 2, ..., 前幾個值是 1, 1, 2, 3, 24, 5, 720, 105, 2240, 189, ... (OEIS A001783)。然後定義
 |
(3)
|
給出了同餘式
 |
(4)
|
對於
一個 奇質數。當
時,這簡化為
這等價於
。前幾個
的值是 0,
,
,
,
,
,
, 1,
,
,
, ... (OEIS A103131).
Szántó (2005) 指出,定義
那麼,取最小剩餘,
 |
(7)
|
對於
, 1, ..., 前幾項是 0,
, 1, 1, 0,
, 1, 0,
,
, 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
主題分類