how to work out remainders - Search