We're dividing 874965 by 31 
Our goal is to divide 874965 by 31.

Let's proceed to step 1:
31 can be fit into 8 0 times, resulting in a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 31

Step 2:
31 can be fit into 87 2 times, resulting in a remainder of 25.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 62 from 87 leaves us with 25.
Fetch the next digit (4) from the dividend, attach it to 25 and continue: 254 / 31

Let's proceed to step 3:
254 divided by 31 is 8 with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 28.0
The remainder is 6 after subtracting 248 from 254.
Grab the next digit (9) from the dividend, add it to 6, then carry on: 69 / 31

Advancing to step 4:
69 divided by 31 is 2 with a remainder of 7.
Use 2 as the next digit of our solution. 
Result so far: 282.0
Subtracting 62 from 69 leaves us with 7.
Append the next digit (6) from the dividend to 7 and continue with: 76 / 31

Going ahead to step 5:
31 goes into 76 2 times with a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 2822.0
Subtract 62 from 76 to get 14.
Append the next digit (5) from the dividend to 14 and continue with: 145 / 31

Step 6:
145 divided by 31 is 4 with a remainder of 21.
The number 4 becomes the next digit in our result. 
Result so far: 28224.0
Subtracting 124 from 145 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 7:
The number 31 fits into 210 6 times, leaving a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 28224.6
Subtracting 186 from 210 leaves us with 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 8:
240 divided by 31 is 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 28224.67
If we take 217 away from 240, we end up 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.

Advancing to step 9:
The number 31 fits into 230 7 times, leaving a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 28224.677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 28224.677 with a balance of 0.0013.