We look at the division of 867398 by 31 
Let's see how many times 31 fits into 867398.

On to 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
If we take 0 away from 8, we end up with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 31

Step 2:
If we divide 86 by 31, we get 2 and a remainder of 24.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 62 from 86 and we're left with 24.
Fetch the next digit (7) from the dividend, attach it to 24 and continue: 247 / 31

Advancing to step 3:
The number 31 fits into 247 7 times, leaving a remainder of 30.
Record the quotient 7 as the next digit in the result. 
Result so far: 27.0
Subtracting 217 from 247 leaves us with 30.
Fetch the next digit (3) from the dividend, attach it to 30 and continue: 303 / 31

On to step 4:
If we divide 303 by 31, we get 9 and a remainder of 24.
The number 9 becomes the next digit in our result. 
Result so far: 279.0
Deduct 279 from 303 and we're left with 24.
Grab the next digit (9) from the dividend, add it to 24, then carry on: 249 / 31

Step 5:
The number 31 fits into 249 8 times, leaving a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 2798.0
Subtracting 248 from 249 leaves us with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 31

Step 6:
If we divide 18 by 31, we get 0 and a remainder of 18.
Write down 0 as next digit of the result. 
Result so far: 27980.0
If we take 0 away from 18, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 7:
The number 31 fits into 180 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 27980.5
The remainder is 25 after subtracting 155 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 8:
250 divided by 31 is 8 with a remainder of 2.
The next digit of our result is 8. 
Result so far: 27980.58
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
If we divide 20 by 31, we get 0 and a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 27980.58
Subtracting 0 from 20 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.

Let's proceed to step 10:
When dividing 200 by 31, we get 6 with a remainder of 14.
The next digit of our result is 6. 
Result so far: 27980.5806
Deduct 186 from 200 and we're left with 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 11:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 27980.58064
Deduct 124 from 140 and we're left 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.

Moving on to step 12:
If we divide 160 by 31, we get 5 and a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 27980.580645
Subtracting 155 from 160 leaves us with 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 13:
50 divided by 31 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 27980.5806451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 14:
If we divide 190 by 31, we get 6 and a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 27980.58064516
Subtracting 186 from 190 leaves us 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.

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