We're dividing 642665 by 39 
We're looking to find how many times 39 goes into 642665.

Step 1:
If we divide 6 by 39, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 39

Let's proceed to step 2:
The number 39 fits into 64 1 times, leaving a remainder of 25.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 39 from 64 and we're left with 25.
Fetch the next digit (2) from the dividend, attach it to 25 and continue: 252 / 39

Let's proceed to step 3:
39 goes into 252 6 times with a remainder of 18.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
The remainder is 18 after subtracting 234 from 252.
Include the next digit (6) from the dividend after 18, then repeat: 186 / 39

Step 4:
If we divide 186 by 39, we get 4 and a remainder of 30.
Write down 4 as next digit of the result. 
Result so far: 164.0
If we subtract 156 from 186, we get 30.
Append the next digit (6) from the dividend to 30 and continue with: 306 / 39

Moving on to step 5:
The number 39 fits into 306 7 times, leaving a remainder of 33.
The next digit of our result is 7. 
Result so far: 1647.0
If we subtract 273 from 306, we get 33.
Include the next digit (5) from the dividend after 33, then repeat: 335 / 39

Moving on to step 6:
If we divide 335 by 39, we get 8 and a remainder of 23.
Write down 8 as next digit of the result. 
Result so far: 16478.0
The remainder is 23 after subtracting 312 from 335.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 7:
39 can be fit into 230 5 times, resulting in a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 16478.5
Subtract 195 from 230 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 8:
If we divide 350 by 39, we get 8 and a remainder of 38.
Put 8 as the next digit of the answer. 
Result so far: 16478.58
The remainder is 38 after subtracting 312 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 9:
380 divided by 39 is 9 with a remainder of 29.
The next digit of our result is 9. 
Result so far: 16478.589
Deduct 351 from 380 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 10:
39 can be fit into 290 7 times, resulting in a remainder of 17.
Write down 7 as next digit of the result. 
Result so far: 16478.5897
Subtracting 273 from 290 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 11:
39 can be fit into 170 4 times, resulting in a remainder of 14.
Use 4 as the next digit of our solution. 
Result so far: 16478.58974
Deduct 156 from 170 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 12:
If we divide 140 by 39, we get 3 and a remainder of 23.
Use 3 as the next digit of our solution. 
Result so far: 16478.589743
Subtract 117 from 140 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 13:
If we divide 230 by 39, we get 5 and a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 16478.5897435
The remainder is 35 after subtracting 195 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Let's proceed to step 14:
350 divided by 39 is 8 with a remainder of 38.
Put 8 as the next digit of the answer. 
Result so far: 16478.58974358
If we take 312 away from 350, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

The final result is 16478.58974358 with a remainder of 3.8e-08.