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

Step 1:
7 divided by 39 is 0 with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Grab the next digit (6) from the dividend, add it to 7, then carry on: 76 / 39

On to step 2:
76 divided by 39 is 1 with a remainder of 37.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 39 away from 76, we end up with 37.
Fetch the next digit (7) from the dividend, attach it to 37 and continue: 377 / 39

Advancing to step 3:
If we divide 377 by 39, we get 9 and a remainder of 26.
The next digit of our result is 9. 
Result so far: 19.0
The remainder is 26 after subtracting 351 from 377.
Take the next digit (8) from the dividend and append it to 26, then repeat: 268 / 39

Moving on to step 4:
If we divide 268 by 39, we get 6 and a remainder of 34.
Use 6 as the next digit of our solution. 
Result so far: 196.0
If we take 234 away from 268, we end up with 34.
Bring next digit (1) of the dividend behind the 34 and repeat the process: 341 / 39

Moving on to step 5:
When dividing 341 by 39, we get 8 with a remainder of 29.
Record the quotient 8 as the next digit in the result. 
Result so far: 1968.0
Subtract 312 from 341 to get 29.
Take the next digit (2) from the dividend and append it to 29, then repeat: 292 / 39

On to step 6:
39 goes into 292 7 times with a remainder of 19.
Use 7 as the next digit of our solution. 
Result so far: 19687.0
Deduct 273 from 292 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
39 goes into 190 4 times with a remainder of 34.
Write down 4 as next digit of the result. 
Result so far: 19687.4
Subtract 156 from 190 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 8:
When dividing 340 by 39, we get 8 with a remainder of 28.
The number 8 becomes the next digit in our result. 
Result so far: 19687.48
If we take 312 away from 340, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 9:
39 can be fit into 280 7 times, resulting in a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 19687.487
Subtracting 273 from 280 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 10:
If we divide 70 by 39, we get 1 and a remainder of 31.
Write down 1 as next digit of the result. 
Result so far: 19687.4871
If we subtract 39 from 70, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Advancing to step 11:
If we divide 310 by 39, we get 7 and a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 19687.48717
If we subtract 273 from 310, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Step 12:
When dividing 370 by 39, we get 9 with a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 19687.487179
If we take 351 away from 370, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 13:
190 divided by 39 is 4 with a remainder of 34.
Put 4 as the next digit of the answer. 
Result so far: 19687.4871794
The remainder is 34 after subtracting 156 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 14:
When dividing 340 by 39, we get 8 with a remainder of 28.
The number 8 becomes the next digit in our result. 
Result so far: 19687.48717948
If we take 312 away from 340, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final result is 19687.48717948 with a remainder of 2.8e-08.