866718 ÷ 31 
Let's see how many times 31 fits into 866718.

Step 1:
The number 31 fits into 8 0 times, leaving a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Fetch the next digit (6) from the dividend, attach it to 8 and continue: 86 / 31

On to step 2:
31 can be fit into 86 2 times, resulting in a remainder of 24.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 62 from 86, we get 24.
Grab the next digit (6) from the dividend, add it to 24, then carry on: 246 / 31

Step 3:
31 can be fit into 246 7 times, resulting in a remainder of 29.
The next digit of our result is 7. 
Result so far: 27.0
The remainder is 29 after subtracting 217 from 246.
Bring next digit (7) of the dividend behind the 29 and repeat the process: 297 / 31

On to step 4:
The number 31 fits into 297 9 times, leaving a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 279.0
Deduct 279 from 297 and we're left with 18.
Grab the next digit (1) from the dividend, add it to 18, then carry on: 181 / 31

Going ahead to step 5:
31 goes into 181 5 times with a remainder of 26.
The number 5 becomes the next digit in our result. 
Result so far: 2795.0
If we take 155 away from 181, we end up with 26.
Bring next digit (8) of the dividend behind the 26 and repeat the process: 268 / 31

Step 6:
268 divided by 31 is 8 with a remainder of 20.
The next digit of our result is 8. 
Result so far: 27958.0
Subtracting 248 from 268 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 7:
200 divided by 31 is 6 with a remainder of 14.
The next digit of our result is 6. 
Result so far: 27958.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.

On 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: 27958.64
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 9:
If we divide 160 by 31, we get 5 and a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 27958.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.

Moving on to step 10:
31 goes into 50 1 times with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 27958.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.

Let's proceed to step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 27958.64516
Deduct 186 from 190 and we're left with 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:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 27958.645161
If we subtract 31 from 40, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 13:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 27958.6451612
If we subtract 62 from 90, we 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.

Step 14:
280 divided by 31 is 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 27958.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.

The final result is 27958.64516129 with a remainder of 1e-09.