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

On to step 1:
When dividing 1 by 39, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 39

Going ahead to step 2:
39 goes into 19 0 times with a remainder of 19.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 19 leaves us with 19.
Include the next digit (8) from the dividend after 19, then repeat: 198 / 39

On to step 3:
The number 39 fits into 198 5 times, leaving a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we subtract 195 from 198, we get 3.
Append the next digit (7) from the dividend to 3 and continue with: 37 / 39

Going ahead to step 4:
When dividing 37 by 39, we get 0 with a remainder of 37.
Write down 0 as next digit of the result. 
Result so far: 50.0
Deduct 0 from 37 and we're left with 37.
Include the next digit (7) from the dividend after 37, then repeat: 377 / 39

Advancing to step 5:
39 can be fit into 377 9 times, resulting in a remainder of 26.
The next digit of our result is 9. 
Result so far: 509.0
If we take 351 away from 377, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 6:
39 can be fit into 260 6 times, resulting in a remainder of 26.
Put 6 as the next digit of the answer. 
Result so far: 509.6
The remainder is 26 after subtracting 234 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 7:
The number 39 fits into 260 6 times, leaving a remainder of 26.
Use 6 as the next digit of our solution. 
Result so far: 509.66
Subtracting 234 from 260 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

The quotient of the division is 509.66, and the remainder is 0.026.