Let's divide 407788 by 39
The aim is to understand the frequency of 39 in 407788.

Advancing to step 1:
When dividing 4 by 39, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 39

Step 2:
If we divide 40 by 39, we get 1 and a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 39 away from 40, we end up with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 39

On to step 3:
39 can be fit into 17 0 times, resulting in a remainder of 17.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we subtract 0 from 17, we get 17.
Include the next digit (7) from the dividend after 17, then repeat: 177 / 39

Advancing to step 4:
The number 39 fits into 177 4 times, leaving a remainder of 21.
Put 4 as the next digit of the answer. 
Result so far: 104.0
Subtract 156 from 177 to get 21.
Grab the next digit (8) from the dividend, add it to 21, then carry on: 218 / 39

Going ahead to step 5:
218 divided by 39 is 5 with a remainder of 23.
The number 5 becomes the next digit in our result. 
Result so far: 1045.0
Subtracting 195 from 218 leaves us with 23.
Grab the next digit (8) from the dividend, add it to 23, then carry on: 238 / 39

Going ahead to step 6:
If we divide 238 by 39, we get 6 and a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 10456.0
The remainder is 4 after subtracting 234 from 238.
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 7:
40 divided by 39 is 1 with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 10456.1
The remainder is 1 after subtracting 39 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 8:
39 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 10456.1
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
If we divide 100 by 39, we get 2 and a remainder of 22.
Put 2 as the next digit of the answer. 
Result so far: 10456.102
If we subtract 78 from 100, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 10:
The number 39 fits into 220 5 times, leaving a remainder of 25.
The next digit of our result is 5. 
Result so far: 10456.1025
Subtract 195 from 220 to 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 11:
If we divide 250 by 39, we get 6 and a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 10456.10256
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.

Step 12:
When dividing 160 by 39, we get 4 with a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 10456.102564
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.

Step 13:
The number 39 fits into 40 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 10456.1025641
If we subtract 39 from 40, we 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.

Let's proceed to step 14:
10 divided by 39 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 10456.1025641
Deduct 0 from 10 and we're left 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.

In conclusion, the division gives 10456.1025641 with a balance of 1e-08.