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

On to step 1:
The number 5 fits into 8 1 times, leaving a remainder of 3.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 3 after subtracting 5 from 8.
Append the next digit (5) from the dividend to 3 and continue with: 35 / 5

Advancing to step 2:
5 can be fit into 35 7 times, resulting in a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 17.0
If we subtract 35 from 35, we get 0.
Grab the next digit (2) from the dividend, add it to 0, then carry on: 2 / 5

Step 3:
5 goes into 2 0 times with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 170.0
The remainder is 2 after subtracting 0 from 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 5

On to step 4:
22 divided by 5 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 1704.0
Subtracting 20 from 22 leaves us with 2.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 5

Going ahead to step 5:
5 goes into 24 4 times with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 17044.0
The remainder is 4 after subtracting 20 from 24.
Grab the next digit (9) from the dividend, add it to 4, then carry on: 49 / 5

Moving on to step 6:
49 divided by 5 is 9 with a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 170449.0
If we subtract 45 from 49, we 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.
Put 8 as the next digit of the answer. 
Result so far: 170449.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.

Step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 170449.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.

Step 9:
If we divide 0 by 5, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 170449.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.

Our division results in 170449.8 with a remaining 0.0.