We divide 999104 by 5
The aim is to understand the frequency of 5 in 999104.

Step 1:
When dividing 9 by 5, we get 1 with a remainder of 4.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 5 from 9, we get 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 5

Moving on to step 2:
If we divide 49 by 5, we get 9 and a remainder of 4.
The next digit of our result is 9. 
Result so far: 19.0
Subtracting 45 from 49 leaves us with 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 5

On to step 3:
When dividing 49 by 5, we get 9 with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 199.0
Subtracting 45 from 49 leaves us with 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 5

Moving on to step 4:
The number 5 fits into 41 8 times, leaving a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 1998.0
Deduct 40 from 41 and we're left with 1.
Bring next digit (0) of the dividend behind the 1 and repeat the process: 10 / 5

Going ahead to step 5:
5 goes into 10 2 times with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 19982.0
If we subtract 10 from 10, we get 0.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 5

Going ahead to step 6:
If we divide 4 by 5, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 199820.0
Subtract 0 from 4 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.

On to step 7:
5 goes into 40 8 times with a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 199820.8
If we take 40 away from 40, 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.

On to step 8:
0 divided by 5 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 199820.8
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 9:
5 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 199820.8
Deduct 0 from 0 and we're left 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.

Our division results in 199820.8 with a remaining 0.0.