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

Advancing to step 1:
5 can be fit into 5 1 times, resulting in a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 5 away from 5, we end up with 0.
Grab the next digit (8) from the dividend, add it to 0, then carry on: 8 / 5

Step 2:
When dividing 8 by 5, we get 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
If we subtract 5 from 8, we get 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 5

Let's proceed to step 3:
When dividing 37 by 5, we get 7 with a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 117.0
Subtract 35 from 37 to get 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 5

Step 4:
The number 5 fits into 28 5 times, leaving a remainder of 3.
The next digit of our result is 5. 
Result so far: 1175.0
The remainder is 3 after subtracting 25 from 28.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 5

On to step 5:
The number 5 fits into 30 6 times, leaving a remainder of 0.
Use 6 as the next digit of our solution. 
Result so far: 11756.0
Subtracting 30 from 30 leaves us with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 5

On to step 6:
7 divided by 5 is 1 with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 117561.0
Subtract 5 from 7 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.

Let's proceed to step 7:
5 can be fit into 20 4 times, resulting in a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 117561.4
Subtracting 20 from 20 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.

Going ahead to step 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 117561.4
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.

Let's proceed to step 9:
5 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 117561.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.

The final result is 117561.4 with a remainder of 0.0.