509508 ÷ 39 
The aim is to understand the frequency of 39 in 509508.

On to step 1:
When dividing 5 by 39, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 39

On to step 2:
When dividing 50 by 39, we get 1 with a remainder of 11.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 39 from 50 and we're left with 11.
Grab the next digit (9) from the dividend, add it to 11, then carry on: 119 / 39

Moving on to step 3:
119 divided by 39 is 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
Subtract 117 from 119 to get 2.
Take the next digit (5) from the dividend and append it to 2, then repeat: 25 / 39

Going ahead to step 4:
39 goes into 25 0 times with a remainder of 25.
The next digit of our result is 0. 
Result so far: 130.0
If we subtract 0 from 25, we get 25.
Fetch the next digit (0) from the dividend, attach it to 25 and continue: 250 / 39

Moving on to step 5:
If we divide 250 by 39, we get 6 and a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 1306.0
Subtracting 234 from 250 leaves us with 16.
Grab the next digit (8) from the dividend, add it to 16, then carry on: 168 / 39

Step 6:
When dividing 168 by 39, we get 4 with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 13064.0
Deduct 156 from 168 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 7:
120 divided by 39 is 3 with a remainder of 3.
Record the quotient 3 as the next digit in the result. 
Result so far: 13064.3
Subtracting 117 from 120 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 8:
39 goes into 30 0 times with a remainder of 30.
The next digit of our result is 0. 
Result so far: 13064.3
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 9:
The number 39 fits into 300 7 times, leaving a remainder of 27.
Record the quotient 7 as the next digit in the result. 
Result so far: 13064.307
Subtract 273 from 300 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 10:
The number 39 fits into 270 6 times, leaving a remainder of 36.
Use 6 as the next digit of our solution. 
Result so far: 13064.3076
If we take 234 away from 270, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 11:
When dividing 360 by 39, we get 9 with a remainder of 9.
The number 9 becomes the next digit in our result. 
Result so far: 13064.30769
Deduct 351 from 360 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 12:
If we divide 90 by 39, we get 2 and a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 13064.307692
Deduct 78 from 90 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 13:
When dividing 120 by 39, we get 3 with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 13064.3076923
If we subtract 117 from 120, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 14:
39 goes into 30 0 times with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 13064.3076923
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Our division results in 13064.3076923 with a remaining 3e-08.