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

Moving on to step 1:
1 divided by 39 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 39

On to step 2:
39 goes into 16 0 times with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Fetch the next digit (3) from the dividend, attach it to 16 and continue: 163 / 39

On to step 3:
The number 39 fits into 163 4 times, leaving a remainder of 7.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 156 from 163, we get 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 39

On to step 4:
The number 39 fits into 77 1 times, leaving a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 41.0
Subtract 39 from 77 to get 38.
Fetch the next digit (8) from the dividend, attach it to 38 and continue: 388 / 39

On to step 5:
The number 39 fits into 388 9 times, leaving a remainder of 37.
Write down 9 as next digit of the result. 
Result so far: 419.0
Subtract 351 from 388 to get 37.
Include the next digit (5) from the dividend after 37, then repeat: 375 / 39

Step 6:
When dividing 375 by 39, we get 9 with a remainder of 24.
Put 9 as the next digit of the answer. 
Result so far: 4199.0
If we subtract 351 from 375, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 7:
When dividing 240 by 39, we get 6 with a remainder of 6.
The number 6 becomes the next digit in our result. 
Result so far: 4199.6
The remainder is 6 after subtracting 234 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 8:
60 divided by 39 is 1 with a remainder of 21.
Record the quotient 1 as the next digit in the result. 
Result so far: 4199.61
Deduct 39 from 60 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 9:
210 divided by 39 is 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 4199.615
Subtracting 195 from 210 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 10:
39 goes into 150 3 times with a remainder of 33.
The number 3 becomes the next digit in our result. 
Result so far: 4199.6153
Subtracting 117 from 150 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 11:
The number 39 fits into 330 8 times, leaving a remainder of 18.
The number 8 becomes the next digit in our result. 
Result so far: 4199.61538
Deduct 312 from 330 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 12:
If we divide 180 by 39, we get 4 and a remainder of 24.
Use 4 as the next digit of our solution. 
Result so far: 4199.615384
If we subtract 156 from 180, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 13:
The number 39 fits into 240 6 times, leaving a remainder of 6.
The next digit of our result is 6. 
Result so far: 4199.6153846
Subtracting 234 from 240 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 14:
The number 39 fits into 60 1 times, leaving a remainder of 21.
The number 1 becomes the next digit in our result. 
Result so far: 4199.61538461
Subtract 39 from 60 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

After the division, we end up with 4199.61538461 and a remainder of 2.1e-08.