We look at the division of 501731 by 99 
We want to divide 501731 by 99.

Going ahead to step 1:
The number 99 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 99

Going ahead to step 2:
99 goes into 50 0 times with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Bring next digit (1) of the dividend behind the 50 and repeat the process: 501 / 99

On to step 3:
99 can be fit into 501 5 times, resulting in a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 495 from 501 leaves us with 6.
Fetch the next digit (7) from the dividend, attach it to 6 and continue: 67 / 99

Let's proceed to step 4:
If we divide 67 by 99, we get 0 and a remainder of 67.
The next digit of our result is 0. 
Result so far: 50.0
The remainder is 67 after subtracting 0 from 67.
Include the next digit (3) from the dividend after 67, then repeat: 673 / 99

Going ahead to step 5:
99 goes into 673 6 times with a remainder of 79.
Use 6 as the next digit of our solution. 
Result so far: 506.0
The remainder is 79 after subtracting 594 from 673.
Grab the next digit (1) from the dividend, add it to 79, then carry on: 791 / 99

Going ahead to step 6:
791 divided by 99 is 7 with a remainder of 98.
Write down 7 as next digit of the result. 
Result so far: 5067.0
Deduct 693 from 791 and we're left with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Advancing to step 7:
99 goes into 980 9 times with a remainder of 89.
The number 9 becomes the next digit in our result. 
Result so far: 5067.9
Subtracting 891 from 980 leaves us with 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

Moving on to step 8:
99 can be fit into 890 8 times, resulting in a remainder of 98.
Record the quotient 8 as the next digit in the result. 
Result so far: 5067.98
If we subtract 792 from 890, we get 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Moving on to step 9:
If we divide 980 by 99, we get 9 and a remainder of 89.
Write down 9 as next digit of the result. 
Result so far: 5067.989
Subtracting 891 from 980 leaves us with 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

Going ahead to step 10:
99 can be fit into 890 8 times, resulting in a remainder of 98.
Use 8 as the next digit of our solution. 
Result so far: 5067.9898
Subtracting 792 from 890 leaves us with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Moving on to step 11:
99 goes into 980 9 times with a remainder of 89.
The number 9 becomes the next digit in our result. 
Result so far: 5067.98989
Subtracting 891 from 980 leaves us with 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

On to step 12:
890 divided by 99 is 8 with a remainder of 98.
Record the quotient 8 as the next digit in the result. 
Result so far: 5067.989898
Deduct 792 from 890 and we're left with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Step 13:
The number 99 fits into 980 9 times, leaving a remainder of 89.
Record the quotient 9 as the next digit in the result. 
Result so far: 5067.9898989
Subtracting 891 from 980 leaves us with 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

Advancing to step 14:
99 goes into 890 8 times with a remainder of 98.
Put 8 as the next digit of the answer. 
Result so far: 5067.98989898
Subtract 792 from 890 to get 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

After the division, we end up with 5067.98989898 and a remainder of 9.8e-08.