modulus operator
mysql> mysql> SELECT 5 % 3; +-------+ | 5 % 3 | +-------+ | 2 | +-------+ 1 row in set (0.00 sec) mysql>