I have to find a value for $r$ such that it is within the bounds of a modular equation. For example:
$$2381\equiv r\mod{87}$$
So I need to find $0\leq r<87$.
How can I do this? The notes I took in class are absolutely horrible so I can't find the instructions that were given to do so.
I'm looking of course to do so without repeated subtraction of $87$ from $2381$