Modular arithmetic
Why is modular arithmetic taught on a clock face?
Because at eleven o'clock, adding four hours gives three, not fifteen. The clock face stops at twelve and restarts, and modular arithmetic only ever keeps the remainder.
Modular arithmetic
Because at eleven o'clock, adding four hours gives three, not fifteen. The clock face stops at twelve and restarts, and modular arithmetic only ever keeps the remainder.
Because at eleven o'clock, adding four hours gives three, not fifteen. The clock face stops at twelve and restarts, and modular arithmetic only ever keeps the remainder.
An IBAN is verified by rearranging it. Each letter is replaced by a number, then the remainder when divided by 97 is calculated. It must equal exactly one. A typo or two swapped digits almost always change this remainder. The transfer is rejected before being sent.
Raising a number to a power modulo a very large integer is fast, even with a gigantic exponent. We proceed by successive squarings. The inverse operation resists all known classical algorithms. Recovering the exponent or factorizing the module. RSA lives in this gap between an easy operation and its reverse, which is unreachable.