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

Let's proceed to step 1:
When dividing 8 by 31, we get 0 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 (7) of the dividend behind the 8 and repeat the process: 87 / 31

Going ahead to step 2:
The number 31 fits into 87 2 times, leaving a remainder of 25.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 25 after subtracting 62 from 87.
Append the next digit (0) from the dividend to 25 and continue with: 250 / 31

Step 3:
250 divided by 31 is 8 with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 28.0
The remainder is 2 after subtracting 248 from 250.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 31

Step 4:
When dividing 29 by 31, we get 0 with a remainder of 29.
Record the quotient 0 as the next digit in the result. 
Result so far: 280.0
Deduct 0 from 29 and we're left with 29.
Fetch the next digit (1) from the dividend, attach it to 29 and continue: 291 / 31

Let's proceed to step 5:
The number 31 fits into 291 9 times, leaving a remainder of 12.
Put 9 as the next digit of the answer. 
Result so far: 2809.0
Subtract 279 from 291 to get 12.
Fetch the next digit (7) from the dividend, attach it to 12 and continue: 127 / 31

Going ahead to step 6:
If we divide 127 by 31, we get 4 and a remainder of 3.
The next digit of our result is 4. 
Result so far: 28094.0
If we take 124 away from 127, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
When dividing 30 by 31, we get 0 with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 28094.0
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
If we divide 300 by 31, we get 9 and a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 28094.09
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 9:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 28094.096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 10:
The number 31 fits into 240 7 times, leaving a remainder of 23.
The next digit of our result is 7. 
Result so far: 28094.0967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 11:
230 divided by 31 is 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 28094.09677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 28094.09677 with a remainder of 1.3e-05.