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

Going ahead to step 1:
8 divided by 5 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 5 away from 8, we end up with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 5

Step 2:
5 goes into 39 7 times with a remainder of 4.
The next digit of our result is 7. 
Result so far: 17.0
Subtracting 35 from 39 leaves us with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 5

Going ahead to step 3:
The number 5 fits into 47 9 times, leaving a remainder of 2.
The next digit of our result is 9. 
Result so far: 179.0
If we subtract 45 from 47, we get 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 5

Going ahead to step 4:
27 divided by 5 is 5 with a remainder of 2.
The next digit of our result is 5. 
Result so far: 1795.0
If we take 25 away from 27, we end up with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 5

Let's proceed to step 5:
27 divided by 5 is 5 with a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 17955.0
Subtract 25 from 27 to get 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 6:
20 divided by 5 is 4 with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 17955.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.

Advancing to step 7:
0 divided by 5 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 17955.4
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.

Advancing to step 8:
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: 17955.4
The remainder is 0 after subtracting 0 from 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 17955.4 and a remainder of 0.0.