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

Advancing to step 1:
5 goes into 9 1 times with a remainder of 4.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 4 after subtracting 5 from 9.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 5

On to step 2:
When dividing 48 by 5, we get 9 with a remainder of 3.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Subtract 45 from 48 to get 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 5

On to step 3:
37 divided by 5 is 7 with a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 197.0
Deduct 35 from 37 and we're left with 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 5

Moving on to step 4:
The number 5 fits into 20 4 times, leaving a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 1974.0
Subtract 20 from 20 to get 0.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 5

On to step 5:
When dividing 2 by 5, we get 0 with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 19740.0
Subtract 0 from 2 to get 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 5

Advancing to step 6:
If we divide 23 by 5, we get 4 and a remainder of 3.
Use 4 as the next digit of our solution. 
Result so far: 197404.0
Deduct 20 from 23 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
The number 5 fits into 30 6 times, leaving a remainder of 0.
The next digit of our result is 6. 
Result so far: 197404.6
Deduct 30 from 30 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 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 197404.6
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:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 197404.6
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.

After the division, we end up with 197404.6 and a remainder of 0.0.