Corollary. The modular normal form of an integer [01CY]
- October 1, 2026
- Marcelo Fiore, Jon Sterling
Let m be a positive integer. Then:
- For every natural number n, we have n \equiv \operatorname {rem}{\mathopen {}\left (n,m\right )\mathclose {}}\mod m.
- For every integer k there exists a unique integer [k]_m such that 0 \leq [k]_m < m\quad \text {and}\quad k \equiv [k]_m\mod m\text {.}
Proof.
- October 1, 2026
- Marcelo Fiore, Jon Sterling
- By definition, we have n = \operatorname {quo}{\mathopen {}\left (n,m\right )\mathclose {}}\cdot m + \operatorname {rem}{\mathopen {}\left (n,m\right )\mathclose {}} and hence n - \operatorname {rem}{\mathopen {}\left (n,m\right )\mathclose {}} = m\cdot \operatorname {quo}{\mathopen {}\left (n,m\right )\mathclose {}}, so it follows that n \equiv \operatorname {rem}{\mathopen {}\left (n,m\right )\mathclose {}} \mod m.
-
For any integer k, we will establish the existence and uniqueness of [k]_m with the specified property sequentially.
- For existence, we note that k+\lvert k \rvert \cdot m is a natural number congruent to k modulo m (indeed, that it is non-negative can be established by considering the worst case scenario, when m = 1). We now choose [k]_m \coloneqq \operatorname {rem}{\mathopen {}\left (k+\lvert k\rvert \cdot m, m\right )\mathclose {}}\text {.} The reason for choosing k+\lvert k\rvert \cdot m is precisely to get a natural number that is congruent to k modulo m. The first condition 0\leq [k]_m < m holds by definition of remainders. The second condition k \equiv [k]_m\mod m can be seen to hold as follows: \begin {aligned} k &\equiv k + \lvert k\rvert \cdot m &\mod m \\ &\equiv \operatorname {rem}{\mathopen {}\left (k+\lvert k\rvert \cdot m,m\right )\mathclose {}} &\mod m \\ &= [k]_m \end {aligned}
For uniqueness, we will prove the following statement:
For all integers l such that 0\leq l < m and k\equiv l\mod m, we have l = [k]_m.
To that end, let l be an integer such that 0 \leq l < m and k\equiv l\mod m.
- We have l \equiv \operatorname {rem}{\mathopen {}\left (l,m\right )\mathclose {}}\mod m and therefore l = \operatorname {rem}{\mathopen {}\left (l,m\right )\mathclose {}} because 0\leq l < m and because equality of modular integers is congruence.
- We have \operatorname {rem}{\mathopen {}\left (l,m\right )\mathclose {}}=\operatorname {rem}{\mathopen {}\left (k,m\right )\mathclose {}}=\operatorname {rem}{\mathopen {}\left ([k]_m,m\right )\mathclose {}} because l\equiv k \equiv [k]_m\mod m via our characterisation of congruence in terms of remainders.
Hence we have the folowing sequence of equations:
l = \operatorname {rem}{\mathopen {}\left (l,m\right )\mathclose {}} = \operatorname {rem}{\mathopen {}\left (k,m\right )\mathclose {}} = \operatorname {rem}{\mathopen {}\left ([k]_m,m\right )\mathclose {}} = [k]_m