Discrete mathematicsLesson 2 of 5 in the course Number theory and recurrences

Modular Arithmetic: Congruences, Residue Systems, and Number-Theory Tools

5 flashcards · 5 quiz questions · 5 match pairs · 3 fill-in sentences · English

Lesson progress
0 / 5

Your progress is kept in this browser only.Sign up to save it

Summary

Modular arithmetic describes integer arithmetic in which values wrap around after reaching a fixed modulus. This lesson introduces remainders, congruence notation, and the basic meaning of “the same remainder.”

A 12-hour clock is a familiar model of arithmetic modulo 12. If the hour hand points to 7 and 8 hours pass, ordinary addition gives 7+8=157+8=15. But a clock reading of 15 is read as 3, so 7+8≡3(mod12)7+8\equiv 3\pmod{12}. After 12 hours, the hand returns to its starting point, which is why 12≡0(mod12)12\equiv 0\pmod{12}.

All flashcards

What does a≡b(modm)a\equiv b\pmod m mean?
The difference a−ba-b is divisible by mm; equivalently, the integers have the same remainder modulo mm.
When is multiplicative cancellation valid modulo mm?
Cancelling a factor kk from a congruence modulo mm is valid when gcd⁡(k,m)=1\gcd(k,m)=1.
What is a complete residue system modulo mm?
A set of mm pairwise incongruent integers representing every congruence class modulo mm.
When does an integer aa have a multiplicative inverse modulo mm?
Exactly when gcd⁡(a,m)=1\gcd(a,m)=1.
What is a discrete logarithm problem?
Finding an exponent from a given modular power and its base and modulus.

Quiz questions

  1. For which condition does an integer aa have a multiplicative inverse modulo mm?Answer: gcd⁡(a,m)=1\gcd(a,m)=1
  2. If mm and nn are coprime, what does the Chinese remainder theorem guarantee for x≡a(modm)x\equiv a\pmod m and x≡b(modn)x\equiv b\pmod n?Answer: A unique solution modulo mnmn
  3. If pp is prime and pp does not divide aa, what does Fermat’s little theorem state?Answer: ap−1≡1(modp)a^{p-1}\equiv1\pmod p
  4. For which positive moduli is Z/mZ\mathbb Z/m\mathbb Z a field?Answer: When mm is prime
  5. If ka≡kb(modm)ka\equiv kb\pmod m, which condition guarantees that kk can be cancelled to conclude a≡b(modm)a\equiv b\pmod m?Answer: gcd⁡(k,m)=1\gcd(k,m)=1

Based on the Wikipedia article Modular arithmetic, licensed CC BY-SA 4.0. Adapted into a summary, flashcards and quizzes.

All Discrete mathematics lessons