We're dividing 987750 by 31 
We're looking to find how many times 31 goes into 987750.

On to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 31

Moving on to step 2:
The number 31 fits into 98 3 times, leaving a remainder of 5.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtracting 93 from 98 leaves us with 5.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 31

Step 3:
If we divide 57 by 31, we get 1 and a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 31.0
Subtracting 31 from 57 leaves us with 26.
Append the next digit (7) from the dividend to 26 and continue with: 267 / 31

On to step 4:
267 divided by 31 is 8 with a remainder of 19.
Use 8 as the next digit of our solution. 
Result so far: 318.0
The remainder is 19 after subtracting 248 from 267.
Fetch the next digit (5) from the dividend, attach it to 19 and continue: 195 / 31

Going ahead to step 5:
31 can be fit into 195 6 times, resulting in a remainder of 9.
Use 6 as the next digit of our solution. 
Result so far: 3186.0
If we subtract 186 from 195, we get 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 31

Step 6:
If we divide 90 by 31, we get 2 and a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 31862.0
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 7:
When dividing 280 by 31, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 31862.9
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 8:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 31862.9
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
31 can be fit into 100 3 times, resulting in a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 31862.903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 10:
70 divided by 31 is 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 31862.9032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 11:
31 goes into 80 2 times with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 31862.90322
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 31862.90322 and a remainder of 1.8e-05.