Let's divide 39587 by 5
The aim is to understand the frequency of 5 in 39587.

Step 1:
3 divided by 5 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
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:
39 divided by 5 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 7.0
Deduct 35 from 39 and we're left with 4.
Take the next digit (5) from the dividend and append it to 4, then repeat: 45 / 5

Let's proceed to step 3:
5 can be fit into 45 9 times, resulting in a remainder of 0.
The next digit of our result is 9. 
Result so far: 79.0
If we take 45 away from 45, we end up with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 5

Advancing to step 4:
5 can be fit into 8 1 times, resulting in a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 791.0
Subtracting 5 from 8 leaves us with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 5

On to step 5:
If we divide 37 by 5, we get 7 and a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 7917.0
Subtract 35 from 37 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.

Moving on to step 6:
5 can be fit into 20 4 times, resulting in a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 7917.4
If we subtract 20 from 20, 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.

Advancing to step 7:
If we divide 0 by 5, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 7917.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.

Going ahead to step 8:
When dividing 0 by 5, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 7917.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.

In conclusion, the division gives 7917.4 with a balance of 0.0.