Dividing number and showing the remainders