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

Step 1:
5 goes into 8 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 5 from 8 to get 3.
Bring next digit (4) of the dividend behind the 3 and repeat the process: 34 / 5

On to step 2:
34 divided by 5 is 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 30 from 34, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 5

Let's proceed to step 3:
If we divide 40 by 5, we get 8 and a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 168.0
The remainder is 0 after subtracting 40 from 40.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 5

Step 4:
The number 5 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 1680.0
If we take 0 away from 4, we end up with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 5

Step 5:
If we divide 42 by 5, we get 8 and a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 16808.0
Deduct 40 from 42 and we're left 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.

Let's proceed to step 6:
The number 5 fits into 20 4 times, leaving a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 16808.4
Subtract 20 from 20 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.

Going ahead to step 7:
5 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 16808.4
If we subtract 0 from 0, we 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.

Going ahead to step 8:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 16808.4
If we subtract 0 from 0, we 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.

After the division, we end up with 16808.4 and a remainder of 0.0.