Modular arithmetic and Fermat's little theorem
Arithmetic of remainders; for prime p and a not divisible by p, a^(p–1) ≡ 1 (mod p).
Edited by Alex C, EduAlx · Sources cited below
Explanation
Gauss formalised congruences in Disquisitiones Arithmeticae (1801). Euler generalised Fermat's theorem: a^φ(n) ≡ 1 (mod n). The Chinese remainder theorem solves systems of congruences. These ideas drive cryptography, hashing and check digits such as ISBN.
Example
How it works, step by step
- Reduce numbers modulo n
- Add and multiply, reducing each time
- Use Euler's theorem for large powers
- Solve linear congruences with inverses
Open the interactive page with diagrams →
Modular arithmetic and Fermat's little theorem in exams
Modular arithmetic and Fermat's little theorem is part of Mathematics, which is tested in JEE Main, JEE Advanced, CUET-UG, CAT, SAT, ACT, GRE, GMAT. Practise it in the exam format:
- JEE Main sample questions with answers · JEE Main preparation strategy
- JEE Advanced sample questions with answers · JEE Advanced preparation strategy
- CUET-UG sample questions with answers · CUET-UG preparation strategy
- CAT sample questions with answers · CAT preparation strategy
- SAT sample questions with answers · SAT preparation strategy
- ACT sample questions with answers · ACT preparation strategy
- GRE sample questions with answers · GRE preparation strategy
- GMAT sample questions with answers · GMAT preparation strategy
People behind it
- Pierre de Fermat (1607–1665), Mathematics, France: Lawyer-mathematician who founded number theory and co-founded probability and analytic geometry.
- Leonhard Euler (1707–1783), Mathematics, Switzerland / Russia: The most prolific mathematician in history: notation f(x), e, i, π, Σ; graph theory; Euler's identity; mechanics and fluid dynamics.
- Carl Friedrich Gauss (1777–1855), Mathematics and physics, Germany: 'Prince of mathematicians': number theory, least squares, the normal distribution, non-Euclidean geometry, magnetism.
- Sunzi
References
- C. F. Gauss, Disquisitiones Arithmeticae, Leipzig, 1801.
Textbooks
- An Introduction to the Theory of Numbers, G. H. Hardy, E. M. Wright (Oxford University Press, 6th ed. 2008). Classic number theory.
Related topics
Fermat's Last TheoremPrime numbers and the fundamental theorem of arithmeticRamanujan's contributions (partitions, infinite series)Cryptography mathematics: elliptic curvesNumber theory: Diophantine equations and Pell's equationRiemann hypothesisStatistical hypothesis testingGroup theoryNormal distribution and the central limit theoremSet theory and Cantor's infinities