Let's divide 500866 by 39
We want to divide 500866 by 39.

Moving on to step 1:
39 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 39

Advancing to step 2:
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: 1.0
If we subtract 39 from 50, we get 11.
Append the next digit (0) from the dividend to 11 and continue with: 110 / 39

On to step 3:
39 goes into 110 2 times with a remainder of 32.
Put 2 as the next digit of the answer. 
Result so far: 12.0
If we subtract 78 from 110, we get 32.
Fetch the next digit (8) from the dividend, attach it to 32 and continue: 328 / 39

On to step 4:
The number 39 fits into 328 8 times, leaving a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
If we subtract 312 from 328, we get 16.
Grab the next digit (6) from the dividend, add it to 16, then carry on: 166 / 39

On to step 5:
When dividing 166 by 39, we get 4 with a remainder of 10.
The number 4 becomes the next digit in our result. 
Result so far: 1284.0
Deduct 156 from 166 and we're left with 10.
Include the next digit (6) from the dividend after 10, then repeat: 106 / 39

Going ahead to step 6:
When dividing 106 by 39, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 12842.0
If we subtract 78 from 106, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
39 can be fit into 280 7 times, resulting in a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 12842.7
Subtracting 273 from 280 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 8:
The number 39 fits into 70 1 times, leaving a remainder of 31.
The next digit of our result is 1. 
Result so far: 12842.71
If we take 39 away from 70, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 9:
39 can be fit into 310 7 times, resulting in a remainder of 37.
The next digit of our result is 7. 
Result so far: 12842.717
If we take 273 away from 310, we end up with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 10:
When dividing 370 by 39, we get 9 with a remainder of 19.
The next digit of our result is 9. 
Result so far: 12842.7179
Subtract 351 from 370 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 11:
190 divided by 39 is 4 with a remainder of 34.
The next digit of our result is 4. 
Result so far: 12842.71794
The remainder is 34 after subtracting 156 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 12:
340 divided by 39 is 8 with a remainder of 28.
The next digit of our result is 8. 
Result so far: 12842.717948
Deduct 312 from 340 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 13:
280 divided by 39 is 7 with a remainder of 7.
The number 7 becomes the next digit in our result. 
Result so far: 12842.7179487
The remainder is 7 after subtracting 273 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 14:
39 can be fit into 70 1 times, resulting in a remainder of 31.
Put 1 as the next digit of the answer. 
Result so far: 12842.71794871
The remainder is 31 after subtracting 39 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

The final result is 12842.71794871 with a remainder of 3.1e-08.