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

Going ahead to 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
The remainder is 8 after subtracting 0 from 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 31

Step 2:
31 can be fit into 87 2 times, resulting in a remainder of 25.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 25 after subtracting 62 from 87.
Append the next digit (4) from the dividend to 25 and continue with: 254 / 31

Moving on to step 3:
If we divide 254 by 31, we get 8 and a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 28.0
If we subtract 248 from 254, we get 6.
Take the next digit (9) from the dividend and append it to 6, then repeat: 69 / 31

Let's proceed to step 4:
31 can be fit into 69 2 times, resulting in a remainder of 7.
Use 2 as the next digit of our solution. 
Result so far: 282.0
Subtract 62 from 69 to get 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 31

Moving on to step 5:
31 can be fit into 77 2 times, resulting in a remainder of 15.
Use 2 as the next digit of our solution. 
Result so far: 2822.0
Deduct 62 from 77 and we're left with 15.
Fetch the next digit (2) from the dividend, attach it to 15 and continue: 152 / 31

Moving on to step 6:
The number 31 fits into 152 4 times, leaving a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 28224.0
The remainder is 28 after subtracting 124 from 152.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 28224.9
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.

On to step 8:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 28224.9
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.

Going ahead to step 9:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 28224.903
If we subtract 93 from 100, 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.

Moving on to step 10:
31 goes into 70 2 times with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 28224.9032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 11:
If we divide 80 by 31, we get 2 and a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 28224.90322
Subtracting 62 from 80 leaves us 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.

After the division, we end up with 28224.90322 and a remainder of 1.8e-05.