We divide 407016 by 39
The aim is to understand the frequency of 39 in 407016.

Advancing to step 1:
If we divide 4 by 39, we get 0 and a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 39

On to step 2:
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: 1.0
Deduct 39 from 40 and we're left with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 39

Let's proceed to step 3:
39 can be fit into 17 0 times, resulting in a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
Subtracting 0 from 17 leaves us with 17.
Grab the next digit (0) from the dividend, add it to 17, then carry on: 170 / 39

Going ahead to step 4:
170 divided by 39 is 4 with a remainder of 14.
Use 4 as the next digit of our solution. 
Result so far: 104.0
If we take 156 away from 170, we end up with 14.
Grab the next digit (1) from the dividend, add it to 14, then carry on: 141 / 39

Step 5:
141 divided by 39 is 3 with a remainder of 24.
Write down 3 as next digit of the result. 
Result so far: 1043.0
Deduct 117 from 141 and we're left with 24.
Fetch the next digit (6) from the dividend, attach it to 24 and continue: 246 / 39

Moving on to step 6:
39 goes into 246 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 10436.0
Deduct 234 from 246 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.

On to step 7:
If we divide 120 by 39, we get 3 and a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 10436.3
Subtract 117 from 120 to 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 8:
39 can be fit into 30 0 times, resulting in a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 10436.3
If we subtract 0 from 30, we get 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: 10436.307
Subtracting 273 from 300 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 10:
If we divide 270 by 39, we get 6 and a remainder of 36.
Record the quotient 6 as the next digit in the result. 
Result so far: 10436.3076
Deduct 234 from 270 and we're left 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.

Let's proceed to step 11:
When dividing 360 by 39, we get 9 with a remainder of 9.
Put 9 as the next digit of the answer. 
Result so far: 10436.30769
The remainder is 9 after subtracting 351 from 360.
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:
39 can be fit into 90 2 times, resulting in a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 10436.307692
If we take 78 away from 90, we end up 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.

Step 13:
120 divided by 39 is 3 with a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 10436.3076923
Subtract 117 from 120 to 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.

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

In conclusion, the division gives 10436.3076923 with a balance of 3e-08.