Modular Arithmetic
Last updated
Last updated
floor function: largest integer not larger than x
divides
does not divide
, that is, as divides , and have the same remainder when divided by
(binary operator) remainder of when divided by ( is called the modulus, which we assume here to be a positive integer). Equal to . Note that . In C, Python, Java
, and pari-gp
, it can be computed using using the %
binary operator (applied to unsigned integers).
gratest common divisor of and .
least common multiple of and ; equal to .
set of equivalence classes modulo ; slightly abusing the mathematical notation for equivalence classes, .