406014 divided by 5 
The aim is to understand the frequency of 5 in 406014.

Step 1:
When dividing 4 by 5, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 5

Advancing to step 2:
5 goes into 40 8 times with a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtract 40 from 40 to get 0.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 5

Step 3:
6 divided by 5 is 1 with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 81.0
If we subtract 5 from 6, we get 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 5

Going ahead to step 4:
If we divide 10 by 5, we get 2 and a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 812.0
If we subtract 10 from 10, we get 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 5

Going ahead to step 5:
5 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 8120.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 5

Going ahead to step 6:
14 divided by 5 is 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 81202.0
Subtract 10 from 14 to get 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:
5 goes into 40 8 times with a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 81202.8
Subtracting 40 from 40 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.

Advancing to step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 81202.8
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.

On to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 81202.8
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.

Our division results in 81202.8 with a remaining 0.0.