502794 ÷ 5 
The aim is to understand the frequency of 5 in 502794.

Advancing to step 1:
When dividing 5 by 5, we get 1 with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 5 away from 5, we end up with 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 5

Step 2:
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: 10.0
Deduct 0 from 0 and we're left with 0.
Append the next digit (2) from the dividend to 0 and continue with: 2 / 5

Moving on to step 3:
The number 5 fits into 2 0 times, leaving a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 100.0
If we subtract 0 from 2, we get 2.
Include the next digit (7) from the dividend after 2, then repeat: 27 / 5

Going ahead to step 4:
5 goes into 27 5 times with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 1005.0
The remainder is 2 after subtracting 25 from 27.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 5

On to step 5:
The number 5 fits into 29 5 times, leaving a remainder of 4.
The next digit of our result is 5. 
Result so far: 10055.0
If we subtract 25 from 29, we get 4.
Include the next digit (4) from the dividend after 4, then repeat: 44 / 5

Moving on to step 6:
44 divided by 5 is 8 with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 100558.0
If we take 40 away from 44, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
The number 5 fits into 40 8 times, leaving a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 100558.8
If we take 40 away from 40, 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:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 100558.8
Subtracting 0 from 0 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.

Let's proceed to step 9:
When dividing 0 by 5, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 100558.8
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.

The final outcome is 100558.8, with a leftover of 0.0.