865012 divided by 31 
We want to divide 865012 by 31.

Step 1:
31 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Bring next digit (6) of the dividend behind the 8 and repeat the process: 86 / 31

On to step 2:
The number 31 fits into 86 2 times, leaving 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.
Fetch the next digit (5) from the dividend, attach it to 24 and continue: 245 / 31

Moving on to step 3:
245 divided by 31 is 7 with a remainder of 28.
Use 7 as the next digit of our solution. 
Result so far: 27.0
If we take 217 away from 245, we end up with 28.
Grab the next digit (0) from the dividend, add it to 28, then carry on: 280 / 31

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

Let's proceed to step 5:
If we divide 11 by 31, we get 0 and a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 2790.0
If we take 0 away from 11, we end up with 11.
Bring next digit (2) of the dividend behind the 11 and repeat the process: 112 / 31

Step 6:
31 goes into 112 3 times with a remainder of 19.
Record the quotient 3 as the next digit in the result. 
Result so far: 27903.0
The remainder is 19 after subtracting 93 from 112.
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:
190 divided by 31 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 27903.6
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
If we divide 40 by 31, we get 1 and a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 27903.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.

Step 9:
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: 27903.612
Subtracting 62 from 90 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.

Advancing to step 10:
If we divide 280 by 31, we get 9 and a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 27903.6129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 11:
If we divide 10 by 31, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 27903.6129
Deduct 0 from 10 and we're left 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 12:
100 divided by 31 is 3 with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 27903.612903
Subtract 93 from 100 to 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:
If we divide 70 by 31, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 27903.6129032
Subtract 62 from 70 to 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.

Going ahead to step 14:
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: 27903.61290322
The remainder is 18 after subtracting 62 from 80.
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 27903.61290322 with a balance of 1.8e-08.