Fermat's Little Theorem
Updated 2026-07-28
Summary
Fermat's little theorem is a theorem in number theory. If a is an integer and p is a prime number, then a^p - a is a multiple of p, which can be expressed as a^p ≡ a (mod p).
Definition
Fermat's little theorem is a theorem in number theory. If a is an integer and p is a prime number, then a^p - a is a multiple of p, which can be expressed as a^p ≡ a (mod p). If a is not divisible by p, then a^(p-1) ≡ 1 (mod p).
Introduction
How to use
Fermat's little theorem is a theorem in number theory. If a is an integer and p is a prime number, then a^p - a is a multiple of p, which can be expressed as a^p ≡ a (mod p).
Mechanism
Fermat's little theorem states: if p is prime and a is not divisible by p, then a^(p−1) ≡ 1 (mod p). It connects modular exponentiation with prime properties and is one of the number-theoretic foundations of modern public-key cryptography (e.g., RSA).
Practice
In progress 0/1Practice this model in one real situation:
Cases
- RSA signature and encryption rely on the congruence properties of modular exponentiation. The Fermat test serves as a preliminary method for primality determination.
Common pitfalls
- Confusing the little theorem with the big theorem (Fermat's Last Theorem). Overlooking that composite numbers may also 'pseudo-pass' the test, requiring other tests to be combined.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E8%B4%B9%E9%A9%AC%E5%B0%8F%E5%AE%9A%E7%90%86verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS