M Modulo N. Modulo n is usually written mod n. The order r of m modulo n is shortly denoted by ord n (m).
For two integers a and b:. Mod m, n gives the remainder of m divided by n. A = c * q1 + r1 where 0 ≤ r1 < c and q1 is some integer.
Modulo computes i= n (modulo m) i.e.
If a b (mod m) and b c (mod m), then a c (mod m). • x is the multiplicative inverse of m modulo n • y is the multiplicative inverse of n modulo m • we could find x and y through the extended euclid algorithm. Ex 4 continuing with example 3 we can write 10 = 5·2. , up to a limit determined by the sizes of m and n.
Nessun commento:
Posta un commento