I understand how do calculate something like 25 mod 20, i.e. 25 mod 20 = 5. However, negatives confuse me. Such as 123 mod -123 or -89 mod -98. Can you offer some insight in dealing with negatives in the a mod b operation?
Thank you.
I understand how do calculate something like 25 mod 20, i.e. 25 mod 20 = 5. However, negatives confuse me. Such as 123 mod -123 or -89 mod -98. Can you offer some insight in dealing with negatives in the a mod b operation?
Thank you.