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

Moving on to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 31

Moving on to step 2:
31 goes into 87 2 times with a remainder of 25.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 62 from 87 to get 25.
Include the next digit (1) from the dividend after 25, then repeat: 251 / 31

On to step 3:
If we divide 251 by 31, we get 8 and a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 28.0
If we subtract 248 from 251, we get 3.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 31

Moving on to step 4:
If we divide 30 by 31, we get 0 and a remainder of 30.
The next digit of our result is 0. 
Result so far: 280.0
Subtracting 0 from 30 leaves us with 30.
Fetch the next digit (1) from the dividend, attach it to 30 and continue: 301 / 31

Going ahead to step 5:
If we divide 301 by 31, we get 9 and a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 2809.0
If we subtract 279 from 301, we get 22.
Take the next digit (4) from the dividend and append it to 22, then repeat: 224 / 31

Moving on to step 6:
31 can be fit into 224 7 times, resulting in a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 28097.0
If we subtract 217 from 224, we 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.

Going ahead to step 7:
When dividing 70 by 31, we get 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 28097.2
Subtracting 62 from 70 leaves us 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.

On to step 8:
80 divided by 31 is 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 28097.22
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.

After the division, we end up with 28097.22 and a remainder of 0.018.