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

On to step 1:
The number 5 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 5

Going ahead to step 2:
17 divided by 5 is 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Deduct 15 from 17 and we're left with 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 5

Step 3:
When dividing 27 by 5, we get 5 with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 35.0
Deduct 25 from 27 and we're left with 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 5

On to step 4:
22 divided by 5 is 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 354.0
If we take 20 away from 22, we end up with 2.
Include the next digit (4) from the dividend after 2, then repeat: 24 / 5

Let's proceed to step 5:
5 goes into 24 4 times with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 3544.0
If we take 20 away from 24, we end up with 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 5

Moving on to step 6:
5 can be fit into 47 9 times, resulting in a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 35449.0
Subtracting 45 from 47 leaves us 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.

On to step 7:
20 divided by 5 is 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 35449.4
Deduct 20 from 20 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.

Step 8:
5 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 35449.4
Subtracting 0 from 0 leaves us 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 9:
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: 35449.4
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.

The final result is 35449.4 with a remainder of 0.0.