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

Step 1:
39 goes into 1 0 times with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 39

Step 2:
The number 39 fits into 16 0 times, leaving a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 16 after subtracting 0 from 16.
Fetch the next digit (4) from the dividend, attach it to 16 and continue: 164 / 39

Moving on to step 3:
If we divide 164 by 39, we get 4 and a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtracting 156 from 164 leaves us with 8.
Bring next digit (5) of the dividend behind the 8 and repeat the process: 85 / 39

Step 4:
39 can be fit into 85 2 times, resulting in a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 42.0
Deduct 78 from 85 and we're left with 7.
Append the next digit (6) from the dividend to 7 and continue with: 76 / 39

Going ahead to step 5:
When dividing 76 by 39, we get 1 with a remainder of 37.
Put 1 as the next digit of the answer. 
Result so far: 421.0
The remainder is 37 after subtracting 39 from 76.
Bring next digit (6) of the dividend behind the 37 and repeat the process: 376 / 39

Going ahead to step 6:
The number 39 fits into 376 9 times, leaving a remainder of 25.
Record the quotient 9 as the next digit in the result. 
Result so far: 4219.0
If we subtract 351 from 376, 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 7:
If we divide 250 by 39, we get 6 and a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 4219.6
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.

On to step 8:
If we divide 160 by 39, we get 4 and a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 4219.64
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 9:
39 can be fit into 40 1 times, resulting in a remainder of 1.
The next digit of our result is 1. 
Result so far: 4219.641
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.

On to step 10:
When dividing 10 by 39, we get 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 4219.641
If we take 0 away from 10, we end up 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.

On to step 11:
When dividing 100 by 39, we get 2 with a remainder of 22.
Put 2 as the next digit of the answer. 
Result so far: 4219.64102
Subtracting 78 from 100 leaves us 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 12:
The number 39 fits into 220 5 times, leaving a remainder of 25.
The next digit of our result is 5. 
Result so far: 4219.641025
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.

Step 13:
250 divided by 39 is 6 with a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 4219.6410256
Deduct 234 from 250 and we're left 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.

Let's proceed to step 14:
39 can be fit into 160 4 times, resulting in a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 4219.64102564
Subtract 156 from 160 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

In conclusion, the division gives 4219.64102564 with a balance of 4e-09.