We look at the division of 516508 by 39 
The aim is to understand the frequency of 39 in 516508.

Advancing to step 1:
39 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 39

Step 2:
If we divide 51 by 39, we get 1 and a remainder of 12.
The next digit of our result is 1. 
Result so far: 1.0
If we take 39 away from 51, we end up with 12.
Include the next digit (6) from the dividend after 12, then repeat: 126 / 39

Going ahead to step 3:
When dividing 126 by 39, we get 3 with a remainder of 9.
Put 3 as the next digit of the answer. 
Result so far: 13.0
Deduct 117 from 126 and we're left with 9.
Fetch the next digit (5) from the dividend, attach it to 9 and continue: 95 / 39

Going ahead to step 4:
If we divide 95 by 39, we get 2 and a remainder of 17.
Write down 2 as next digit of the result. 
Result so far: 132.0
Subtracting 78 from 95 leaves us with 17.
Grab the next digit (0) from the dividend, add it to 17, then carry on: 170 / 39

Going ahead to step 5:
170 divided by 39 is 4 with a remainder of 14.
Write down 4 as next digit of the result. 
Result so far: 1324.0
Deduct 156 from 170 and we're left with 14.
Append the next digit (8) from the dividend to 14 and continue with: 148 / 39

Step 6:
39 can be fit into 148 3 times, resulting in a remainder of 31.
The number 3 becomes the next digit in our result. 
Result so far: 13243.0
The remainder is 31 after subtracting 117 from 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 7:
39 can be fit into 310 7 times, resulting in a remainder of 37.
Put 7 as the next digit of the answer. 
Result so far: 13243.7
The remainder is 37 after subtracting 273 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Advancing to step 8:
39 goes into 370 9 times with a remainder of 19.
The next digit of our result is 9. 
Result so far: 13243.79
The remainder is 19 after subtracting 351 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 9:
The number 39 fits into 190 4 times, leaving a remainder of 34.
Write down 4 as next digit of the result. 
Result so far: 13243.794
Subtracting 156 from 190 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 10:
The number 39 fits into 340 8 times, leaving a remainder of 28.
Record the quotient 8 as the next digit in the result. 
Result so far: 13243.7948
The remainder is 28 after subtracting 312 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 11:
If we divide 280 by 39, we get 7 and a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 13243.79487
If we take 273 away from 280, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 12:
The number 39 fits into 70 1 times, leaving a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 13243.794871
If we subtract 39 from 70, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 13:
39 goes into 310 7 times with a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 13243.7948717
Subtracting 273 from 310 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 14:
If we divide 370 by 39, we get 9 and a remainder of 19.
Record the quotient 9 as the next digit in the result. 
Result so far: 13243.79487179
Deduct 351 from 370 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

In conclusion, the division gives 13243.79487179 with a balance of 1.9e-08.