866261 divided by 31 
Let's see how many times 31 fits into 866261.

Step 1:
31 goes into 8 0 times with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Bring next digit (6) of the dividend behind the 8 and repeat the process: 86 / 31

Advancing to step 2:
31 can be fit into 86 2 times, resulting in a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 62 away from 86, we end up with 24.
Bring next digit (6) of the dividend behind the 24 and repeat the process: 246 / 31

Moving on to step 3:
If we divide 246 by 31, we get 7 and a remainder of 29.
The number 7 becomes the next digit in our result. 
Result so far: 27.0
If we subtract 217 from 246, we get 29.
Fetch the next digit (2) from the dividend, attach it to 29 and continue: 292 / 31

Going ahead to step 4:
The number 31 fits into 292 9 times, leaving a remainder of 13.
Record the quotient 9 as the next digit in the result. 
Result so far: 279.0
If we subtract 279 from 292, we get 13.
Take the next digit (6) from the dividend and append it to 13, then repeat: 136 / 31

Going ahead to step 5:
31 goes into 136 4 times with a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 2794.0
If we take 124 away from 136, we end up with 12.
Include the next digit (1) from the dividend after 12, then repeat: 121 / 31

Moving on to step 6:
121 divided by 31 is 3 with a remainder of 28.
The next digit of our result is 3. 
Result so far: 27943.0
Subtracting 93 from 121 leaves us 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.

Step 7:
280 divided by 31 is 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 27943.9
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.

Step 8:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 27943.9
If we subtract 0 from 10, we get 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:
100 divided by 31 is 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 27943.903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 10:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 27943.9032
Deduct 62 from 70 and we're left 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.

Moving on to step 11:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 27943.90322
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.

In conclusion, the division gives 27943.90322 with a balance of 1.8e-05.