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

On to step 1:
39 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Grab the next digit (9) from the dividend, add it to 4, then carry on: 49 / 39

Going ahead to step 2:
If we divide 49 by 39, we get 1 and a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 39 from 49 and we're left with 10.
Include the next digit (9) from the dividend after 10, then repeat: 109 / 39

On to step 3:
When dividing 109 by 39, we get 2 with a remainder of 31.
Put 2 as the next digit of the answer. 
Result so far: 12.0
The remainder is 31 after subtracting 78 from 109.
Grab the next digit (5) from the dividend, add it to 31, then carry on: 315 / 39

Step 4:
39 can be fit into 315 8 times, resulting in a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 128.0
If we subtract 312 from 315, we get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 39

On to step 5:
If we divide 31 by 39, we get 0 and a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 1280.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

Moving on to step 6:
The number 39 fits into 317 8 times, leaving a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 12808.0
If we subtract 312 from 317, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
39 goes into 50 1 times with a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 12808.1
Subtracting 39 from 50 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 8:
39 goes into 110 2 times with a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 12808.12
The remainder is 32 after subtracting 78 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 9:
39 can be fit into 320 8 times, resulting in a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 12808.128
The remainder is 8 after subtracting 312 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 10:
39 goes into 80 2 times with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 12808.1282
If we subtract 78 from 80, we 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.

Let's proceed to step 11:
39 goes into 20 0 times with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 12808.1282
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 12:
39 goes into 200 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 12808.128205
Subtracting 195 from 200 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 13:
50 divided by 39 is 1 with a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 12808.1282051
The remainder is 11 after subtracting 39 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 14:
39 goes into 110 2 times with a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 12808.12820512
Subtract 78 from 110 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

The final result is 12808.12820512 with a remainder of 3.2e-08.