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

Let's proceed to step 1:
39 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 39

On to step 2:
39 goes into 40 1 times with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 39 from 40 leaves us with 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 39

On to step 3:
39 can be fit into 15 0 times, resulting in a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
If we subtract 0 from 15, we get 15.
Grab the next digit (9) from the dividend, add it to 15, then carry on: 159 / 39

Moving on to step 4:
When dividing 159 by 39, we get 4 with a remainder of 3.
The next digit of our result is 4. 
Result so far: 104.0
The remainder is 3 after subtracting 156 from 159.
Take the next digit (5) from the dividend and append it to 3, then repeat: 35 / 39

Advancing to step 5:
The number 39 fits into 35 0 times, leaving a remainder of 35.
Record the quotient 0 as the next digit in the result. 
Result so far: 1040.0
Deduct 0 from 35 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 6:
When dividing 350 by 39, we get 8 with a remainder of 38.
Record the quotient 8 as the next digit in the result. 
Result so far: 1040.8
If we take 312 away from 350, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Advancing to step 7:
If we divide 380 by 39, we get 9 and a remainder of 29.
Record the quotient 9 as the next digit in the result. 
Result so far: 1040.89
Subtract 351 from 380 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 8:
290 divided by 39 is 7 with a remainder of 17.
Record the quotient 7 as the next digit in the result. 
Result so far: 1040.897
Subtracting 273 from 290 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 9:
170 divided by 39 is 4 with a remainder of 14.
The number 4 becomes the next digit in our result. 
Result so far: 1040.8974
If we subtract 156 from 170, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 10:
If we divide 140 by 39, we get 3 and a remainder of 23.
Use 3 as the next digit of our solution. 
Result so far: 1040.89743
If we take 117 away from 140, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 11:
230 divided by 39 is 5 with a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 1040.897435
Deduct 195 from 230 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Let's proceed to step 12:
When dividing 350 by 39, we get 8 with a remainder of 38.
Put 8 as the next digit of the answer. 
Result so far: 1040.8974358
Deduct 312 from 350 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Advancing to step 13:
380 divided by 39 is 9 with a remainder of 29.
Put 9 as the next digit of the answer. 
Result so far: 1040.89743589
Subtract 351 from 380 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

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