We look at the division of 866345 by 31 
Our goal is to divide 866345 by 31.

Moving on to step 1:
8 divided by 31 is 0 with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 31

Moving on to step 2:
When dividing 86 by 31, we get 2 with a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 62 from 86, we get 24.
Bring next digit (6) of the dividend behind the 24 and repeat the process: 246 / 31

Moving on to step 3:
31 goes into 246 7 times with a remainder of 29.
Use 7 as the next digit of our solution. 
Result so far: 27.0
If we subtract 217 from 246, we get 29.
Append the next digit (3) from the dividend to 29 and continue with: 293 / 31

Advancing to step 4:
If we divide 293 by 31, we get 9 and a remainder of 14.
Write down 9 as next digit of the result. 
Result so far: 279.0
Deduct 279 from 293 and we're left with 14.
Take the next digit (4) from the dividend and append it to 14, then repeat: 144 / 31

Step 5:
The number 31 fits into 144 4 times, leaving a remainder of 20.
Put 4 as the next digit of the answer. 
Result so far: 2794.0
The remainder is 20 after subtracting 124 from 144.
Bring next digit (5) of the dividend behind the 20 and repeat the process: 205 / 31

Moving on to step 6:
205 divided by 31 is 6 with a remainder of 19.
The next digit of our result is 6. 
Result so far: 27946.0
If we subtract 186 from 205, we 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.

Step 7:
31 can be fit into 190 6 times, resulting in a remainder of 4.
The next digit of our result is 6. 
Result so far: 27946.6
If we take 186 away from 190, we end up 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.

Advancing to step 8:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 27946.61
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.

Going ahead to step 9:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 27946.612
If we take 62 away from 90, we end up 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.

Moving on to step 10:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 27946.6129
Deduct 279 from 280 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 11:
When dividing 10 by 31, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 27946.6129
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.

Advancing to step 12:
When dividing 100 by 31, we get 3 with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 27946.612903
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.

Let's proceed to step 13:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 27946.6129032
If we subtract 62 from 70, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 14:
31 goes into 80 2 times with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 27946.61290322
If we subtract 62 from 80, we 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 27946.61290322 and a remainder of 1.8e-08.