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

On to step 1:
9 divided by 39 is 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Fetch the next digit (1) from the dividend, attach it to 9 and continue: 91 / 39

Step 2:
The number 39 fits into 91 2 times, leaving a remainder of 13.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 13 after subtracting 78 from 91.
Include the next digit (6) from the dividend after 13, then repeat: 136 / 39

Going ahead to step 3:
When dividing 136 by 39, we get 3 with a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 23.0
The remainder is 19 after subtracting 117 from 136.
Grab the next digit (5) from the dividend, add it to 19, then carry on: 195 / 39

Moving on to step 4:
The number 39 fits into 195 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 235.0
Subtracting 195 from 195 leaves us with 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 39

On to step 5:
39 can be fit into 4 0 times, resulting in a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 2350.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 39

Step 6:
When dividing 40 by 39, we get 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 23501.0
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.

Step 7:
The number 39 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 23501.0
Subtracting 0 from 10 leaves us 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.

Advancing to step 8:
The number 39 fits into 100 2 times, leaving a remainder of 22.
The next digit of our result is 2. 
Result so far: 23501.02
Subtract 78 from 100 to 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.

On to step 9:
220 divided by 39 is 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 23501.025
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.

Let's proceed to step 10:
The number 39 fits into 250 6 times, leaving a remainder of 16.
The next digit of our result is 6. 
Result so far: 23501.0256
The remainder is 16 after subtracting 234 from 250.
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 11:
The number 39 fits into 160 4 times, leaving a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 23501.02564
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.

Step 12:
40 divided by 39 is 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 23501.025641
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.

Step 13:
39 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 23501.025641
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 14:
The number 39 fits into 100 2 times, leaving a remainder of 22.
The number 2 becomes the next digit in our result. 
Result so far: 23501.02564102
Subtract 78 from 100 to 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.

The final outcome is 23501.02564102, with a leftover of 2.2e-08.