We're dividing 870427 by 31 
We want to figure out the number of times 870427 can be divided by 31.

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.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 31

Going ahead to step 2:
87 divided by 31 is 2 with a remainder of 25.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 62 away from 87, we end up with 25.
Take the next digit (0) from the dividend and append it to 25, then repeat: 250 / 31

Advancing to step 3:
If we divide 250 by 31, we get 8 and a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 28.0
If we take 248 away from 250, we end up with 2.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 31

Step 4:
If we divide 24 by 31, we get 0 and a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 280.0
Subtracting 0 from 24 leaves us with 24.
Fetch the next digit (2) from the dividend, attach it to 24 and continue: 242 / 31

Moving on to step 5:
When dividing 242 by 31, we get 7 with a remainder of 25.
Put 7 as the next digit of the answer. 
Result so far: 2807.0
If we take 217 away from 242, we end up with 25.
Take the next digit (7) from the dividend and append it to 25, then repeat: 257 / 31

Advancing to step 6:
When dividing 257 by 31, we get 8 with a remainder of 9.
Write down 8 as next digit of the result. 
Result so far: 28078.0
The remainder is 9 after subtracting 248 from 257.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 7:
90 divided by 31 is 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 28078.2
Subtract 62 from 90 to 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.

Moving on to step 8:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 28078.29
Subtracting 279 from 280 leaves us 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 9:
31 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 28078.29
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 10:
31 can be fit into 100 3 times, resulting in a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 28078.2903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 11:
When dividing 70 by 31, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 28078.29032
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.

Advancing to step 12:
When dividing 80 by 31, we get 2 with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 28078.290322
Subtract 62 from 80 to 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.

Our division results in 28078.290322 with a remaining 1.8e-06.