Welcome to the modulo world
Modulo (aka mod) is an important operation in number theory. Given a positive integer \(m\) as modulo, an arbitrary integer is mapped into a number in \(\mathcal{M} = \{0,1,...m-1\}\) via modulo operation, a -> a % m \(\in \mathcal{M}\). More importantly, common arithmetic operations …