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

Going ahead to step 1:
4 divided by 5 is 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 5

Moving on to step 2:
5 can be fit into 40 8 times, resulting in a remainder of 0.
The next digit of our result is 8. 
Result so far: 8.0
If we subtract 40 from 40, we get 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 5

Step 3:
The number 5 fits into 8 1 times, leaving a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 81.0
Subtract 5 from 8 to get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 5

Going ahead to step 4:
5 goes into 31 6 times with a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 816.0
If we take 30 away from 31, we end up with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 5

Step 5:
10 divided by 5 is 2 with a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 8162.0
If we take 10 away from 10, we end up with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 5

Let's proceed to step 6:
5 can be fit into 7 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 81621.0
Subtract 5 from 7 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
20 divided by 5 is 4 with a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 81621.4
If we subtract 20 from 20, 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 8:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 81621.4
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.

On to step 9:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 81621.4
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.

Our division results in 81621.4 with a remaining 0.0.