4 Modulo 5. 1) plug values in the above formula: Then, we subtract the highest divisor multiple from the dividend to get the answer to 4 modulus 5 (4 mod 5):
2 | 2 3 4 0 1 (*) see how to calculate 'floor ()' below in this page. 25 mod 5 = 0, because 25 divides by 5 (five times), with 0 remaining.
As you can see, the answer to 4 mod 5 is 4.
5 mod 2 = 1, because all odd numbers give a remainder of 1 when divided by 2. Let's have a look at another example: For instance, the expression “7 mod 5” would evaluate to 2 because 7 divided by 5 leaves a remainder of 2, while “10 mod 5” would evaluate to 0 because the division of 10 by 5 leaves a. 15 / 4 = 3.75
0 commenti: