Compute the euclidean modulo
// table for n / 3-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 <- n-------------------------------------2 -1 -0 -2 -1 0, 1, 2, 0, 1, 2 <- n % 3 1 2 0 1 2 0, 1, 2, 0, 1, 2 <- euclideanModule(n, 3) Copy
// table for n / 3-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 <- n-------------------------------------2 -1 -0 -2 -1 0, 1, 2, 0, 1, 2 <- n % 3 1 2 0 1 2 0, 1, 2, 0, 1, 2 <- euclideanModule(n, 3)
dividend
divisor
the euclidean modulo of n / m
Compute the euclidean modulo