Let's divide 640508 by 39
We want to figure out the number of times 640508 can be divided by 39.

Step 1:
If we divide 6 by 39, we get 0 and a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 39

Step 2:
The number 39 fits into 64 1 times, leaving a remainder of 25.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 39 from 64, we get 25.
Grab the next digit (0) from the dividend, add it to 25, then carry on: 250 / 39

Going ahead to step 3:
The number 39 fits into 250 6 times, leaving a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we take 234 away from 250, we end up with 16.
Include the next digit (5) from the dividend after 16, then repeat: 165 / 39

Moving on to step 4:
165 divided by 39 is 4 with a remainder of 9.
The number 4 becomes the next digit in our result. 
Result so far: 164.0
Subtracting 156 from 165 leaves us with 9.
Append the next digit (0) from the dividend to 9 and continue with: 90 / 39

Moving on to step 5:
When dividing 90 by 39, we get 2 with a remainder of 12.
The number 2 becomes the next digit in our result. 
Result so far: 1642.0
Subtract 78 from 90 to get 12.
Append the next digit (8) from the dividend to 12 and continue with: 128 / 39

Advancing to step 6:
When dividing 128 by 39, we get 3 with a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 16423.0
Deduct 117 from 128 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.

Let's proceed to step 7:
110 divided by 39 is 2 with a remainder of 32.
Use 2 as the next digit of our solution. 
Result so far: 16423.2
If we subtract 78 from 110, we 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.

Going ahead to step 8:
The number 39 fits into 320 8 times, leaving a remainder of 8.
The next digit of our result is 8. 
Result so far: 16423.28
If we subtract 312 from 320, we 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.

On to step 9:
80 divided by 39 is 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 16423.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.

Let's proceed to step 10:
39 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 16423.282
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.

Going ahead to step 11:
200 divided by 39 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 16423.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.

Advancing to step 12:
50 divided by 39 is 1 with a remainder of 11.
The next digit of our result is 1. 
Result so far: 16423.282051
If we subtract 39 from 50, we 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.

Step 13:
110 divided by 39 is 2 with a remainder of 32.
Put 2 as the next digit of the answer. 
Result so far: 16423.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.

On to step 14:
39 can be fit into 320 8 times, resulting in a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 16423.28205128
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.

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