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

On to step 1:
The number 39 fits into 6 0 times, leaving a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 39

Moving on to step 2:
When dividing 64 by 39, we get 1 with a remainder of 25.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 39 from 64 leaves us with 25.
Grab the next digit (2) from the dividend, add it to 25, then carry on: 252 / 39

Moving on to step 3:
39 goes into 252 6 times with a remainder of 18.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we take 234 away from 252, we end up with 18.
Grab the next digit (8) from the dividend, add it to 18, then carry on: 188 / 39

Going ahead to step 4:
If we divide 188 by 39, we get 4 and a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 164.0
Deduct 156 from 188 and we're left with 32.
Take the next digit (5) from the dividend and append it to 32, then repeat: 325 / 39

Moving on to step 5:
39 goes into 325 8 times with a remainder of 13.
Record the quotient 8 as the next digit in the result. 
Result so far: 1648.0
Subtract 312 from 325 to get 13.
Take the next digit (7) from the dividend and append it to 13, then repeat: 137 / 39

Advancing to step 6:
137 divided by 39 is 3 with a remainder of 20.
Put 3 as the next digit of the answer. 
Result so far: 16483.0
The remainder is 20 after subtracting 117 from 137.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 7:
When dividing 200 by 39, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 16483.5
The remainder is 5 after subtracting 195 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 8:
The number 39 fits into 50 1 times, leaving a remainder of 11.
Record the quotient 1 as the next digit in the result. 
Result so far: 16483.51
Subtracting 39 from 50 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 9:
If we divide 110 by 39, we get 2 and a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 16483.512
The remainder is 32 after subtracting 78 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 10:
The number 39 fits into 320 8 times, leaving a remainder of 8.
The next digit of our result is 8. 
Result so far: 16483.5128
Subtract 312 from 320 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 11:
39 goes into 80 2 times with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 16483.51282
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.

On to step 12:
If we divide 20 by 39, we get 0 and a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 16483.51282
Deduct 0 from 20 and we're left 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.

Let's proceed to step 13:
The number 39 fits into 200 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 16483.5128205
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.

Step 14:
39 can be fit into 50 1 times, resulting in a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 16483.51282051
The remainder is 11 after subtracting 39 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

In conclusion, the division gives 16483.51282051 with a balance of 1.1e-08.