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

Step 1:
5 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 5

On to step 2:
5 can be fit into 31 6 times, resulting in a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 6.0
Subtract 30 from 31 to get 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 5

Advancing to step 3:
17 divided by 5 is 3 with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 63.0
Subtracting 15 from 17 leaves us with 2.
Fetch the next digit (5) from the dividend, attach it to 2 and continue: 25 / 5

Moving on to step 4:
The number 5 fits into 25 5 times, leaving a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 635.0
Subtract 25 from 25 to get 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 5

Step 5:
The number 5 fits into 1 0 times, leaving a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 6350.0
Subtract 0 from 1 to get 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 5

Let's proceed to step 6:
When dividing 12 by 5, we get 2 with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 63502.0
If we take 10 away from 12, we end up 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.

Step 7:
5 can be fit into 20 4 times, resulting in a remainder of 0.
The next digit of our result is 4. 
Result so far: 63502.4
If we take 20 away from 20, we end up 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 8:
5 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 63502.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.

Moving on to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 63502.4
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.

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