We're dividing 945791 by 39 
The aim is to understand the frequency of 39 in 945791.

Step 1:
When dividing 9 by 39, we get 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 39

Advancing to step 2:
The number 39 fits into 94 2 times, leaving a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 78 from 94 and we're left with 16.
Grab the next digit (5) from the dividend, add it to 16, then carry on: 165 / 39

Going ahead to step 3:
If we divide 165 by 39, we get 4 and a remainder of 9.
Write down 4 as next digit of the result. 
Result so far: 24.0
Deduct 156 from 165 and we're left with 9.
Append the next digit (7) from the dividend to 9 and continue with: 97 / 39

Advancing to step 4:
39 can be fit into 97 2 times, resulting in a remainder of 19.
Write down 2 as next digit of the result. 
Result so far: 242.0
If we subtract 78 from 97, we get 19.
Fetch the next digit (9) from the dividend, attach it to 19 and continue: 199 / 39

Step 5:
39 goes into 199 5 times with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 2425.0
Deduct 195 from 199 and we're left with 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 39

Step 6:
The number 39 fits into 41 1 times, leaving a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 24251.0
Deduct 39 from 41 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
39 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 24251.0
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 8:
200 divided by 39 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 24251.05
If we subtract 195 from 200, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 9:
The number 39 fits into 50 1 times, leaving a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 24251.051
Subtract 39 from 50 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 10:
When dividing 110 by 39, we get 2 with a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 24251.0512
If we subtract 78 from 110, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 11:
When dividing 320 by 39, we get 8 with a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 24251.05128
The remainder is 8 after subtracting 312 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 12:
When dividing 80 by 39, we get 2 with a remainder of 2.
The next digit of our result is 2. 
Result so far: 24251.051282
If we take 78 away from 80, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 13:
39 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 24251.051282
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 14:
If we divide 200 by 39, we get 5 and a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 24251.05128205
If we take 195 away from 200, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

In conclusion, the division gives 24251.05128205 with a balance of 5e-09.