Let's divide 874670 by 31
Our goal is to divide 874670 by 31.

Advancing to step 1:
8 divided by 31 is 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 31

On to step 2:
87 divided by 31 is 2 with a remainder of 25.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 62 away from 87, we end up with 25.
Append the next digit (4) from the dividend to 25 and continue with: 254 / 31

Moving on to step 3:
The number 31 fits into 254 8 times, leaving a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 28.0
Subtract 248 from 254 to get 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 31

On to step 4:
31 goes into 66 2 times with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 282.0
Deduct 62 from 66 and we're left with 4.
Bring next digit (7) of the dividend behind the 4 and repeat the process: 47 / 31

Going ahead to step 5:
If we divide 47 by 31, we get 1 and a remainder of 16.
Record the quotient 1 as the next digit in the result. 
Result so far: 2821.0
The remainder is 16 after subtracting 31 from 47.
Include the next digit (0) from the dividend after 16, then repeat: 160 / 31

Let's proceed to step 6:
When dividing 160 by 31, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 28215.0
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 7:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 28215.1
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 28215.16
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 28215.161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 10:
31 goes into 90 2 times with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 28215.1612
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 11:
If we divide 280 by 31, we get 9 and a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 28215.16129
If we subtract 279 from 280, we get 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 12:
When dividing 10 by 31, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 28215.16129
The remainder is 10 after subtracting 0 from 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 13:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 28215.1612903
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.

Moving on to step 14:
When dividing 70 by 31, we get 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 28215.16129032
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.

The final outcome is 28215.16129032, with a leftover of 8e-09.