Let's divide 999860 by 5
The aim is to understand the frequency of 5 in 999860.

Advancing to step 1:
When dividing 9 by 5, we get 1 with a remainder of 4.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 5 from 9 to get 4.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 5

Advancing to step 2:
When dividing 49 by 5, we get 9 with a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 19.0
Deduct 45 from 49 and we're left with 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 5

Let's proceed to step 3:
5 goes into 49 9 times with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 199.0
If we take 45 away from 49, we end up with 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 5

Let's proceed to step 4:
48 divided by 5 is 9 with a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 1999.0
Deduct 45 from 48 and we're left with 3.
Bring next digit (6) of the dividend behind the 3 and repeat the process: 36 / 5

Step 5:
If we divide 36 by 5, we get 7 and a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 19997.0
Subtract 35 from 36 to get 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 5

Moving on to step 6:
When dividing 10 by 5, we get 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 199972.0
If we take 10 away from 10, we end up 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 7:
If we divide 0 by 5, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 199972.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 199972.0
The remainder is 0 after subtracting 0 from 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 199972.0, with a leftover of 0.0.