Test div-and-mod.