We're dividing 317950 by 39 
The aim is to understand the frequency of 39 in 317950.

Advancing to step 1:
The number 39 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 39

Going ahead to step 2:
39 can be fit into 31 0 times, resulting in a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Include the next digit (7) from the dividend after 31, then repeat: 317 / 39

Let's proceed to step 3:
39 can be fit into 317 8 times, resulting in a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Deduct 312 from 317 and we're left with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 39

Moving on to step 4:
The number 39 fits into 59 1 times, leaving a remainder of 20.
The next digit of our result is 1. 
Result so far: 81.0
If we subtract 39 from 59, we get 20.
Grab the next digit (5) from the dividend, add it to 20, then carry on: 205 / 39

Step 5:
The number 39 fits into 205 5 times, leaving a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 815.0
The remainder is 10 after subtracting 195 from 205.
Append the next digit (0) from the dividend to 10 and continue with: 100 / 39

Step 6:
When dividing 100 by 39, we get 2 with a remainder of 22.
The next digit of our result is 2. 
Result so far: 8152.0
If we take 78 away from 100, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 7:
39 can be fit into 220 5 times, resulting in a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 8152.5
If we take 195 away from 220, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
39 can be fit into 250 6 times, resulting in a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 8152.56
If we take 234 away from 250, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 9:
39 can be fit into 160 4 times, resulting in a remainder of 4.
The next digit of our result is 4. 
Result so far: 8152.564
The remainder is 4 after subtracting 156 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 10:
40 divided by 39 is 1 with a remainder of 1.
The next digit of our result is 1. 
Result so far: 8152.5641
Subtract 39 from 40 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 11:
39 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 8152.5641
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 12:
39 goes into 100 2 times with a remainder of 22.
The number 2 becomes the next digit in our result. 
Result so far: 8152.564102
The remainder is 22 after subtracting 78 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 13:
39 goes into 220 5 times with a remainder of 25.
The next digit of our result is 5. 
Result so far: 8152.5641025
If we subtract 195 from 220, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 14:
The number 39 fits into 250 6 times, leaving a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 8152.56410256
If we take 234 away from 250, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

In conclusion, the division gives 8152.56410256 with a balance of 1.6e-08.