Fermat's little theorem

费尔马小定理

Number Theory · Undergraduate · Mathematics Resources editorial compilation (AI-assisted)

Other names / variants: Fermat little theorem · 费马小定理

Translation evidence: Literature usage

Meaning in context

If pp is prime and p∤ap\nmid a, then ap−1≡1(modp)a^{p-1}\equiv1\pmod p; equivalently ap≡aa^p\equiv a for every integer aa.

若 pp 为素数且 p∤ap\nmid a,则 ap−1≡1(modp)a^{p-1}\equiv1\pmod p;等价地,对任意整数 aa 有 ap≡a(modp)a^p\equiv a\pmod p。

Example

36=729≡1(mod7)3^6=729\equiv1\pmod7.

Usage and distinctions

The hypothesis that the modulus is prime matters; the little theorem differs from Fermat's last theorem about sums of powers.

Read the encyclopedia explanation

Definition sources

  1. Keith Conrad — Euler's Theorem, University of Connecticut author notesSection 1, Theorem 1.1; equivalent all-integer formulation follows by separating p divides a · Checked 2026-10-15

Translation sources

  1. 新乡学院数学与统计学院 — 初等数论课程教学大纲第三章 同余,基本概念段落 Fermat 小定理及第四节 费尔马定理,PDF page 4 (zero-based index 3); combined naming evidence · Checked 2026-10-15
  2. 熊平、朱天清 — 信息安全原理及应用,清华大学出版社官方目录目录,第4章 公钥密码体制,4.2.4 费尔马小定理; publisher naming evidence only, not textbook body · Checked 2026-10-15
  3. 清华大学出版社 — 官方图书目录(catalogue 01216901)第11章 初等数论,11.5 欧拉定理和费马小定理 (printed-page listing 306); name variant evidence only · Checked 2026-10-15

Original encyclopedia and terminology content: CC BY-SA 4.0. Contribute or report a correction.