Modulo Calculator
A modulo calculator for arithmetic that stays inside a fixed modulus. Enter two numbers and a modulus to add, subtract, multiply or raise to a power with the answer reduced to the range 0 to n minus 1, solve a x = b (mod n) to get every solution and the modular inverse of a, or enter a single number to see its remainder under both sign conventions. Negative operands are accepted throughout, and the two answers they produce are shown side by side rather than picked for you. Powers are worked by repeated squaring, so a large exponent costs nothing.