We divide 987618 by 31
We want to figure out the number of times 987618 can be divided by 31.

Step 1:
31 goes into 9 0 times with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Take the next digit (8) from the dividend and append it to 9, then repeat: 98 / 31

On to step 2:
98 divided by 31 is 3 with a remainder of 5.
The next digit of our result is 3. 
Result so far: 3.0
If we subtract 93 from 98, we get 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 31

Moving on to step 3:
57 divided by 31 is 1 with a remainder of 26.
Put 1 as the next digit of the answer. 
Result so far: 31.0
Deduct 31 from 57 and we're left with 26.
Include the next digit (6) from the dividend after 26, then repeat: 266 / 31

Step 4:
The number 31 fits into 266 8 times, leaving a remainder of 18.
Record the quotient 8 as the next digit in the result. 
Result so far: 318.0
If we take 248 away from 266, we end up with 18.
Bring next digit (1) of the dividend behind the 18 and repeat the process: 181 / 31

Going ahead to step 5:
181 divided by 31 is 5 with a remainder of 26.
Record the quotient 5 as the next digit in the result. 
Result so far: 3185.0
If we take 155 away from 181, we end up with 26.
Include the next digit (8) from the dividend after 26, then repeat: 268 / 31

Let's proceed to step 6:
268 divided by 31 is 8 with a remainder of 20.
Record the quotient 8 as the next digit in the result. 
Result so far: 31858.0
Subtract 248 from 268 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 7:
31 can be fit into 200 6 times, resulting in a remainder of 14.
The next digit of our result is 6. 
Result so far: 31858.6
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 8:
When dividing 140 by 31, we get 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 31858.64
If we subtract 124 from 140, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 9:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 31858.645
Subtract 155 from 160 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 10:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 31858.6451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 11:
31 goes into 190 6 times with a remainder of 4.
The next digit of our result is 6. 
Result so far: 31858.64516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 12:
31 goes into 40 1 times with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 31858.645161
If we take 31 away from 40, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 13:
If we divide 90 by 31, we get 2 and a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 31858.6451612
Subtract 62 from 90 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 14:
280 divided by 31 is 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 31858.64516129
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.

After the division, we end up with 31858.64516129 and a remainder of 1e-09.