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

Step 1:
9 divided by 39 is 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Include the next digit (1) from the dividend after 9, then repeat: 91 / 39

Advancing to step 2:
39 can be fit into 91 2 times, resulting in a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 78 away from 91, we end up with 13.
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.
The number 3 becomes the next digit in our result. 
Result so far: 23.0
The remainder is 19 after subtracting 117 from 136.
Fetch the next digit (7) from the dividend, attach it to 19 and continue: 197 / 39

On to step 4:
The number 39 fits into 197 5 times, leaving a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 235.0
Subtracting 195 from 197 leaves us with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 39

Step 5:
39 goes into 29 0 times with a remainder of 29.
The number 0 becomes the next digit in our result. 
Result so far: 2350.0
The remainder is 29 after subtracting 0 from 29.
Include the next digit (1) from the dividend after 29, then repeat: 291 / 39

Going ahead to step 6:
If we divide 291 by 39, we get 7 and a remainder of 18.
Record the quotient 7 as the next digit in the result. 
Result so far: 23507.0
Subtracting 273 from 291 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
The number 39 fits into 180 4 times, leaving a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 23507.4
If we take 156 away from 180, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 8:
If we divide 240 by 39, we get 6 and a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 23507.46
If we subtract 234 from 240, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
The number 39 fits into 60 1 times, leaving a remainder of 21.
Record the quotient 1 as the next digit in the result. 
Result so far: 23507.461
Subtract 39 from 60 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 10:
If we divide 210 by 39, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 23507.4615
If we take 195 away from 210, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 11:
150 divided by 39 is 3 with a remainder of 33.
The number 3 becomes the next digit in our result. 
Result so far: 23507.46153
Subtract 117 from 150 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 12:
39 goes into 330 8 times with a remainder of 18.
The number 8 becomes the next digit in our result. 
Result so far: 23507.461538
Subtracting 312 from 330 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 13:
If we divide 180 by 39, we get 4 and a remainder of 24.
The next digit of our result is 4. 
Result so far: 23507.4615384
Subtracting 156 from 180 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 14:
240 divided by 39 is 6 with a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 23507.46153846
Subtracting 234 from 240 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

In conclusion, the division gives 23507.46153846 with a balance of 6e-09.