We look at the division of 640586 by 39 
We want to divide 640586 by 39.

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.
Grab the next digit (4) from the dividend, add it to 6, then carry on: 64 / 39

Step 2:
If we divide 64 by 39, we get 1 and a remainder of 25.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 39 from 64 and we're left with 25.
Append the next digit (0) from the dividend to 25 and continue with: 250 / 39

Advancing to step 3:
39 goes into 250 6 times with a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
If we take 234 away from 250, we end up with 16.
Fetch the next digit (5) from the dividend, attach it to 16 and continue: 165 / 39

Step 4:
39 goes into 165 4 times with a remainder of 9.
Use 4 as the next digit of our solution. 
Result so far: 164.0
If we take 156 away from 165, we end up with 9.
Bring next digit (8) of the dividend behind the 9 and repeat the process: 98 / 39

Advancing to step 5:
39 goes into 98 2 times with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 1642.0
The remainder is 20 after subtracting 78 from 98.
Grab the next digit (6) from the dividend, add it to 20, then carry on: 206 / 39

Step 6:
39 can be fit into 206 5 times, resulting in a remainder of 11.
Put 5 as the next digit of the answer. 
Result so far: 16425.0
Subtract 195 from 206 to get 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 7:
39 goes into 110 2 times with a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 16425.2
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 8:
39 goes into 320 8 times with a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 16425.28
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 9:
80 divided by 39 is 2 with a remainder of 2.
The next digit of our result is 2. 
Result so far: 16425.282
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.

Step 10:
The number 39 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 16425.282
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.

Let's proceed to step 11:
39 goes into 200 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 16425.28205
Subtract 195 from 200 to 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.

On to step 12:
The number 39 fits into 50 1 times, leaving a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 16425.282051
Deduct 39 from 50 and we're left 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.

Step 13:
The number 39 fits into 110 2 times, leaving a remainder of 32.
Use 2 as the next digit of our solution. 
Result so far: 16425.2820512
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.

Going ahead to step 14:
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: 16425.28205128
Subtracting 312 from 320 leaves us 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.

The final outcome is 16425.28205128, with a leftover of 8e-09.