Can the modulus be one?
Yes. Every integer has residue zero modulo one.
Enter an integer and a positive modulus. Compute a basic modular operation without losing digits.
The result is between zero and m minus one. Negative values wrap around this interval, so −17 modulo 5 is 3.
Sums and products can use reduced operands. A modular power repeatedly squares and reduces intermediate values, keeping exact integers even when the unreduced power is large.
Yes. Every integer has residue zero modulo one.
This form accepts nonnegative exponents. A negative power would require an appropriate modular inverse.