Word problems with remainders