We look at the division of 587498 by 20 
The aim is to understand the frequency of 20 in 587498.

Advancing to step 1:
The number 20 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 20

Advancing to step 2:
The number 20 fits into 58 2 times, leaving a remainder of 18.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 18 after subtracting 40 from 58.
Append the next digit (7) from the dividend to 18 and continue with: 187 / 20

Moving on to step 3:
If we divide 187 by 20, we get 9 and a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 29.0
If we take 180 away from 187, we end up with 7.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 20

Moving on to step 4:
The number 20 fits into 74 3 times, leaving a remainder of 14.
Write down 3 as next digit of the result. 
Result so far: 293.0
If we take 60 away from 74, we end up with 14.
Append the next digit (9) from the dividend to 14 and continue with: 149 / 20

Advancing to step 5:
If we divide 149 by 20, we get 7 and a remainder of 9.
The number 7 becomes the next digit in our result. 
Result so far: 2937.0
Subtracting 140 from 149 leaves us with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 20

Advancing to step 6:
20 goes into 98 4 times with a remainder of 18.
The next digit of our result is 4. 
Result so far: 29374.0
Subtracting 80 from 98 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 7:
If we divide 180 by 20, we get 9 and a remainder of 0.
The next digit of our result is 9. 
Result so far: 29374.9
Subtract 180 from 180 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.

Advancing to step 8:
When dividing 0 by 20, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 29374.9
If we subtract 0 from 0, 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 9:
The number 20 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 29374.9
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 outcome is 29374.9, with a leftover of 0.0.