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

On to step 1:
3 divided by 5 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 5

Step 2:
The number 5 fits into 31 6 times, leaving a remainder of 1.
The next digit of our result is 6. 
Result so far: 6.0
Subtract 30 from 31 to get 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 5

On to step 3:
5 goes into 10 2 times with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 62.0
If we take 10 away from 10, we end up with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 5

On to step 4:
When dividing 5 by 5, we get 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 621.0
The remainder is 0 after subtracting 5 from 5.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 5

On to step 5:
2 divided by 5 is 0 with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 6210.0
Subtract 0 from 2 to get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 5

Going ahead to step 6:
5 goes into 27 5 times with a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 62105.0
Deduct 25 from 27 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed 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: 62105.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.

Step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 62105.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.

Let's proceed to step 9:
0 divided by 5 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 62105.4
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.

After the division, we end up with 62105.4 and a remainder of 0.0.