874870 divided by 6 
The aim is to understand the frequency of 6 in 874870.

Step 1:
6 goes into 8 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
If we take 6 away from 8, we end up with 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 6

Moving on to step 2:
6 goes into 27 4 times with a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
Subtracting 24 from 27 leaves us with 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 6

Step 3:
The number 6 fits into 34 5 times, leaving a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 145.0
If we take 30 away from 34, we end up with 4.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 6

Advancing to step 4:
The number 6 fits into 48 8 times, leaving a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 1458.0
Subtract 48 from 48 to get 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 6

Let's proceed to step 5:
The number 6 fits into 7 1 times, leaving a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 14581.0
If we subtract 6 from 7, we get 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 6

Advancing to step 6:
10 divided by 6 is 1 with a remainder of 4.
Use 1 as the next digit of our solution. 
Result so far: 145811.0
Subtract 6 from 10 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
The number 6 fits into 40 6 times, leaving a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 145811.6
If we take 36 away from 40, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 8:
If we divide 40 by 6, we get 6 and a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 145811.66
The remainder is 4 after subtracting 36 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 145811.66, with a leftover of 0.004.