We're dividing 578040 by 5 
The aim is to understand the frequency of 5 in 578040.

On to step 1:
When dividing 5 by 5, we get 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 0 after subtracting 5 from 5.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 5

Going ahead to step 2:
5 can be fit into 7 1 times, resulting in a remainder of 2.
The next digit of our result is 1. 
Result so far: 11.0
Deduct 5 from 7 and we're left with 2.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 5

Going ahead to step 3:
28 divided by 5 is 5 with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 115.0
If we take 25 away from 28, we end up with 3.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 5

Let's proceed to step 4:
30 divided by 5 is 6 with a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 1156.0
The remainder is 0 after subtracting 30 from 30.
Fetch the next digit (4) from the dividend, attach it to 0 and continue: 4 / 5

Advancing to step 5:
If we divide 4 by 5, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 11560.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 5

Going ahead to step 6:
If we divide 40 by 5, we get 8 and a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 115608.0
If we subtract 40 from 40, 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.

Going ahead to step 7:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 115608.0
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.

Moving on to step 8:
0 divided by 5 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 115608.0
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.

In conclusion, the division gives 115608.0 with a balance of 0.0.