We divide 389887 by 77
We want to figure out the number of times 389887 can be divided by 77.

Advancing to step 1:
When dividing 3 by 77, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 77

Advancing to step 2:
38 divided by 77 is 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 38 to get 38.
Bring next digit (9) of the dividend behind the 38 and repeat the process: 389 / 77

On to step 3:
When dividing 389 by 77, we get 5 with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we take 385 away from 389, we end up with 4.
Include the next digit (8) from the dividend after 4, then repeat: 48 / 77

Advancing to step 4:
77 goes into 48 0 times with a remainder of 48.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
If we subtract 0 from 48, we get 48.
Bring next digit (8) of the dividend behind the 48 and repeat the process: 488 / 77

Going ahead to step 5:
488 divided by 77 is 6 with a remainder of 26.
Record the quotient 6 as the next digit in the result. 
Result so far: 506.0
If we subtract 462 from 488, we get 26.
Take the next digit (7) from the dividend and append it to 26, then repeat: 267 / 77

Let's proceed to step 6:
When dividing 267 by 77, we get 3 with a remainder of 36.
The number 3 becomes the next digit in our result. 
Result so far: 5063.0
If we subtract 231 from 267, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 7:
The number 77 fits into 360 4 times, leaving a remainder of 52.
Record the quotient 4 as the next digit in the result. 
Result so far: 5063.4
If we take 308 away from 360, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 8:
If we divide 520 by 77, we get 6 and a remainder of 58.
Write down 6 as next digit of the result. 
Result so far: 5063.46
Subtracting 462 from 520 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 9:
77 can be fit into 580 7 times, resulting in a remainder of 41.
Write down 7 as next digit of the result. 
Result so far: 5063.467
Subtract 539 from 580 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Advancing to step 10:
When dividing 410 by 77, we get 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 5063.4675
Subtracting 385 from 410 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 11:
If we divide 250 by 77, we get 3 and a remainder of 19.
Record the quotient 3 as the next digit in the result. 
Result so far: 5063.46753
Subtract 231 from 250 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 12:
77 can be fit into 190 2 times, resulting in a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 5063.467532
Subtracting 154 from 190 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 13:
The number 77 fits into 360 4 times, leaving a remainder of 52.
The next digit of our result is 4. 
Result so far: 5063.4675324
If we take 308 away from 360, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Advancing to step 14:
77 can be fit into 520 6 times, resulting in a remainder of 58.
The number 6 becomes the next digit in our result. 
Result so far: 5063.46753246
Subtracting 462 from 520 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

After the division, we end up with 5063.46753246 and a remainder of 5.8e-08.