主題
Search

費馬小定理


如果 p 是一個 素數 並且 a 是一個 自然數,則

 a^p=a (mod p).
(1)

此外,如果 pa (p 不整除 a),則存在一些最小的指數 d 使得

 a^d-1=0 (mod p)
(2)

並且 d 整除 p-1。 因此,

 a^(p-1)-1=0 (mod p).
(3)

該定理有時也簡稱為“費馬定理”(Hardy 和 Wright 1979,第 63 頁)。

這是 中國猜想 的推廣和 尤拉定理 的特例。 它有時被稱為費馬素性檢驗,是素性的 必要 但非 充分 條件。 雖然費馬可能已經證明了它(但未公開),但第一個證明是由尤拉在 1749 年發表的。 目前尚不清楚“費馬小定理”這個術語何時首次被用於描述該定理,但 Hensel (1913) 在一本德語教科書中使用了它,並且出現在 Mac Lane (1940) 和 Kaplansky (1945) 的著作中。

該定理很容易透過對 a 進行數學 歸納 證明。 假設 p|a^p-a (即,p 整除 a^p-a)。 然後檢查

 (a+1)^p-(a+1).
(4)

根據 二項式定理

 (a+1)^p=a^p+(p; 1)a^(p-1)+(p; 2)a^(p-2)+...+(p; p-1)a+1.
(5)

改寫為,

 (a+1)^p-a^p-1=(p; 1)a^(p-1)+(p; 2)a^(p-2)+...+(p; p-1)a.
(6)

但是 p 整除右邊,所以它也整除左邊。 結合歸納假設,得到 p 整除總和

 [(a+1)^p-a^p-1]+(a^p-a)=(a+1)^p-(a+1),
(7)

如假設,因此該假設對於任何 a 都成立。 該定理有時被稱為費馬簡單定理。威爾遜定理 是費馬小定理的 推論

費馬小定理表明,如果 p素數,則不存在一個基數 a<p,其中 (a,p)=1 使得 a^(p-1)-1 對模 p 具有非零餘數。 如果存在這樣的基數 a,則可以保證 p 是合數。 然而,費馬小定理中非零餘數的缺乏並不能保證 p素數。 明確地證明合數,同時透過一些 素數 的性質使得費馬小定理成為一個 合數性檢驗,有時稱為 費馬合數性檢驗。 對於某些非平凡基數滿足費馬小定理並且未知為合數的數稱為 可能素數

合數 被稱為 費馬偽素數(或有時簡稱為“偽素數”),對於某些 as 具有零餘數,因此未被識別為合數。 更糟糕的是,存在被稱為 卡邁克爾數 的數字(其中最小的是 561),對於任何選擇與 p 互質 的基數 a 都給出零餘數。 然而,費馬小定理的逆定理 提供了一個證明數字素性的標準。 下表列出了前 100 個基數 a 的最小 偽素數 P(OEIS A007535;Beiler 1966,第 42 頁,勘誤已更正)。

aPaPaPaPaP
234122694220562638291
391233343776334183105
4152425444564658485
5124252845766511285129
63526274613366918687
7252765476567858791
892845484968698891
9282935496669858999
103330495051701699091
1115314951657110591115
12653233528572859293
1321338553657311193301
14153435545574759495
1534135515563759195141
165136915657767796133
1745374557657724797105
1825383958133783419899
194539955987799199145
20214091603418081100153
21554110561918185

另請參閱

二項式定理, 卡邁克爾數, 中國猜想, 合數, 合數性檢驗, 尤拉定理, 費馬小定理的逆定理, 費馬偽素數, 模乘法群, 普拉特證書, 素性測試, 素數, 偽素數, 互質, 總計函式, 維費裡希素數, 威爾遜定理, 證人

使用 探索

參考文獻

Ball, W. W. R. 和 Coxeter, H. S. M. Mathematical Recreations and Essays, 13th ed. New York: Dover, p. 61, 1987.Beiler, A. H. Recreations in the Theory of Numbers: The Queen of Mathematics Entertains. New York: Dover, 1966.Conway, J. H. 和 Guy, R. K. The Book of Numbers. New York: Springer-Verlag, pp. 141-142, 1996.Courant, R. 和 Robbins, H. "Fermat's Theorem." §2.2 in Supplement to Ch. 1 in What Is Mathematics?: An Elementary Approach to Ideas and Methods, 2nd ed. Oxford, England: Oxford University Press, pp. 37-38, 1996.Flannery, S. 和 Flannery, D. In Code: A Mathematical Journey. London: Profile Books, pp. 118-125, 2000.Hardy, G. H. 和 Wright, E. M. An Introduction to the Theory of Numbers, 5th ed. Oxford, England: Clarendon Press, 1979.Hensel, K. Zahlentheorie. Berlin: G. J. Göschen, 1913.Kaplansky, I. "Lucas's Tests for Mersenne Numbers." Amer. Math. Monthly 52, 188-190, 1945.Mac Lane, S. "Modular Fields." Amer. Math. Monthly 47, 259-274, 1940.Nagell, T. "Fermat's Theorem and Its Generalization by Euler." §21 in Introduction to Number Theory. New York: Wiley, pp. 71-73, 1951.Séroul, R. "The Theorems of Fermat and Euler." §2.8 in Programming for Mathematicians. Berlin: Springer-Verlag, p. 15, 2000.Shanks, D. Solved and Unsolved Problems in Number Theory, 4th ed. New York: Chelsea, p. 20, 1993.Sloane, N. J. A. Sequence A007535/M5440 in "The On-Line Encyclopedia of Integer Sequences."

請引用為

Weisstein, Eric W. “費馬小定理。” 來自 --一個 資源。 https://mathworld.tw/FermatsLittleTheorem.html

學科分類