I am learning modular arithmetic and trying to figure out, how to find remainder where denominator is greater than numerator?
For example:
i) $2 \bmod 5 =$ ?
I tried to solve this but I got 0
as remainder whereas in calculators it is $2$ . I was solving it with regular math operators like adding 0 and value after points.
ii) $-2 \bmod 5$ = ?
Also I wanted to know, how to handle negative number in modular arithmetic?