modular arithmetic addition and multiplication code example Example: modulo subtraction ((a%c - b%c) % c + c) % c