874487 ÷ 5 
The aim is to understand the frequency of 5 in 874487.

Going ahead to step 1:
5 can be fit into 8 1 times, resulting in a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 3 after subtracting 5 from 8.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 5

Advancing to step 2:
If we divide 37 by 5, we get 7 and a remainder of 2.
The next digit of our result is 7. 
Result so far: 17.0
Subtract 35 from 37 to get 2.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 5

Let's proceed to step 3:
5 can be fit into 24 4 times, resulting in a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 174.0
Subtracting 20 from 24 leaves us with 4.
Bring next digit (4) of the dividend behind the 4 and repeat the process: 44 / 5

On to step 4:
If we divide 44 by 5, we get 8 and a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 1748.0
Deduct 40 from 44 and we're left with 4.
Include the next digit (8) from the dividend after 4, then repeat: 48 / 5

Moving on to step 5:
When dividing 48 by 5, we get 9 with a remainder of 3.
The next digit of our result is 9. 
Result so far: 17489.0
Deduct 45 from 48 and we're left with 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 5

Going ahead to step 6:
If we divide 37 by 5, we get 7 and a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 174897.0
If we take 35 away from 37, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
When dividing 20 by 5, we get 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 174897.4
The remainder is 0 after subtracting 20 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
When dividing 0 by 5, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 174897.4
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 174897.4
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 174897.4, with a leftover of 0.0.