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

Advancing to step 1:
The number 5 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 5

Going ahead to step 2:
5 can be fit into 39 7 times, resulting in a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 7.0
Subtract 35 from 39 to get 4.
Fetch the next digit (4) from the dividend, attach it to 4 and continue: 44 / 5

Moving on to step 3:
44 divided by 5 is 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 78.0
Subtract 40 from 44 to get 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 5

Let's proceed to step 4:
5 can be fit into 47 9 times, resulting in a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 789.0
If we take 45 away from 47, we end up with 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 5

On to step 5:
When dividing 28 by 5, we get 5 with a remainder of 3.
The number 5 becomes the next digit in our result. 
Result so far: 7895.0
Subtracting 25 from 28 leaves us with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 5

Let's proceed to step 6:
When dividing 31 by 5, we get 6 with a remainder of 1.
Write down 6 as next digit of the result. 
Result so far: 78956.0
If we take 30 away from 31, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
The number 5 fits into 10 2 times, leaving a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 78956.2
Deduct 10 from 10 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.

Moving on to step 8:
5 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 78956.2
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 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 78956.2
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 result is 78956.2 with a remainder of 0.0.