Skip to content

Number operations ​

Denote by [m]={0,1,…,m}[m] = \{0,1,\ldots, m\}. Recall the notation a∣ba \mid b "aa divides bb", meaning (∃k∈Z)b=ak(\exists k \in {\mathbb Z}) b = a k. Also, the congruent notation a≡b(modm)a \equiv b \pmod{m} ("aa is congruent to bb modulo mm"), which means m∣(a−b)m \mid (a-b). Modular arithmetic deals with relations under this modulo notation. Another name for modular arithmetic is "calendar arithmetic", e.g., 36≡1(mod7)36 \equiv 1 \pmod{7} implies that, if today is Sunday, then 3636 days from now will be Monday.

Exercise 42

Prove that ≡\equiv under modulo qq is an equivalence relation.

Exercise 43

If a≡c(modm)a \equiv c \pmod{m} and b≡d(modm)b \equiv d \pmod{m}, then a+b≡c+d(modm)a + b \equiv c+d \pmod{m} and ab≡cd(modm)ab \equiv cd \pmod{m}

The above exercise allows us to have an easier time working in modular arithmetic. For instance, if we want to find the last digit of number 1110011^{100}, we could simply write 11≡1(mod10)11 \equiv 1 \pmod{10} and then we can raise both sides to the power of 100100, which gives us 11100≡1(mod10)11^{100} \equiv 1 \pmod{10}. The last digit of this number is 11!

Exercise 44

What is the last digit of 99910001999^{10001}? Prove your answer.

Toolbox by Hilmy Abiyyu Asad from the Noun Project. © 2026 Me. Built with VitePress.