We look at the division of 396239 by 5 
The aim is to understand the frequency of 5 in 396239.

On to step 1:
The number 5 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 5

Let's proceed to step 2:
When dividing 39 by 5, we get 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 7.0
The remainder is 4 after subtracting 35 from 39.
Bring next digit (6) of the dividend behind the 4 and repeat the process: 46 / 5

Let's proceed to step 3:
If we divide 46 by 5, we get 9 and a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 79.0
If we subtract 45 from 46, we get 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 5

On to step 4:
5 can be fit into 12 2 times, resulting in a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 792.0
The remainder is 2 after subtracting 10 from 12.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 5

Step 5:
The number 5 fits into 23 4 times, leaving a remainder of 3.
The next digit of our result is 4. 
Result so far: 7924.0
If we subtract 20 from 23, we get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 5

On to step 6:
5 goes into 39 7 times with a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 79247.0
If we take 35 away from 39, 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.

Step 7:
The number 5 fits into 40 8 times, leaving a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 79247.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.

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

Let's proceed to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 79247.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.

The final result is 79247.8 with a remainder of 0.0.