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

Let's proceed to step 1:
39 can be fit into 8 0 times, resulting in a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 39

Going ahead to step 2:
When dividing 84 by 39, we get 2 with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 78 from 84 and we're left with 6.
Include the next digit (0) from the dividend after 6, then repeat: 60 / 39

Going ahead to step 3:
60 divided by 39 is 1 with a remainder of 21.
The number 1 becomes the next digit in our result. 
Result so far: 21.0
Deduct 39 from 60 and we're left with 21.
Include the next digit (1) from the dividend after 21, then repeat: 211 / 39

Going ahead to step 4:
39 can be fit into 211 5 times, resulting in a remainder of 16.
The next digit of our result is 5. 
Result so far: 215.0
The remainder is 16 after subtracting 195 from 211.
Append the next digit (7) from the dividend to 16 and continue with: 167 / 39

On to step 5:
39 goes into 167 4 times with a remainder of 11.
Use 4 as the next digit of our solution. 
Result so far: 2154.0
Subtract 156 from 167 to get 11.
Append the next digit (0) from the dividend to 11 and continue with: 110 / 39

Moving on to step 6:
When dividing 110 by 39, we get 2 with a remainder of 32.
Record the quotient 2 as the next digit in the result. 
Result so far: 21542.0
If we take 78 away from 110, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 7:
When dividing 320 by 39, we get 8 with a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 21542.8
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.

Moving on to step 8:
80 divided by 39 is 2 with a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 21542.82
If we subtract 78 from 80, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 9:
39 can be fit into 20 0 times, resulting in a remainder of 20.
The next digit of our result is 0. 
Result so far: 21542.82
If we subtract 0 from 20, we get 20.
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 10:
39 goes into 200 5 times with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 21542.8205
Deduct 195 from 200 and we're left 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.

On to step 11:
50 divided by 39 is 1 with a remainder of 11.
The next digit of our result is 1. 
Result so far: 21542.82051
If we take 39 away from 50, we end up 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.

Moving on to step 12:
If we divide 110 by 39, we get 2 and a remainder of 32.
Put 2 as the next digit of the answer. 
Result so far: 21542.820512
Subtracting 78 from 110 leaves us with 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 13:
The number 39 fits into 320 8 times, leaving a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 21542.8205128
Deduct 312 from 320 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 14:
39 goes into 80 2 times with a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 21542.82051282
If we subtract 78 from 80, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 21542.82051282 and a remainder of 2e-09.