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

Step 1:
39 goes into 8 0 times with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 39

On to step 2:
39 can be fit into 86 2 times, resulting in a remainder of 8.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 78 from 86, we get 8.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 39

Going ahead to step 3:
85 divided by 39 is 2 with a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 22.0
If we subtract 78 from 85, we get 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 39

Advancing to step 4:
The number 39 fits into 78 2 times, leaving a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 222.0
Deduct 78 from 78 and we're left with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 39

Step 5:
If we divide 0 by 39, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 2220.0
Subtracting 0 from 0 leaves us with 0.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 39

Step 6:
39 goes into 2 0 times with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 22200.0
The remainder is 2 after subtracting 0 from 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
39 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 22200.0
If we take 0 away from 20, we end up 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.

On to step 8:
200 divided by 39 is 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 22200.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:
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: 22200.051
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.

Advancing to step 10:
When dividing 110 by 39, we get 2 with a remainder of 32.
The next digit of our result is 2. 
Result so far: 22200.0512
Subtract 78 from 110 to 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.

On to step 11:
If we divide 320 by 39, we get 8 and a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 22200.05128
If we take 312 away from 320, we end up 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.

On to step 12:
39 can be fit into 80 2 times, resulting in a remainder of 2.
The next digit of our result is 2. 
Result so far: 22200.051282
The remainder is 2 after subtracting 78 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 13:
39 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 22200.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.

On to step 14:
200 divided by 39 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 22200.05128205
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.

The final result is 22200.05128205 with a remainder of 5e-09.