We're dividing 399782 by 77 
We want to divide 399782 by 77.

Let's proceed to step 1:
77 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 77

Going ahead to step 2:
When dividing 39 by 77, we get 0 with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Grab the next digit (9) from the dividend, add it to 39, then carry on: 399 / 77

Moving on to step 3:
77 goes into 399 5 times with a remainder of 14.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtracting 385 from 399 leaves us with 14.
Append the next digit (7) from the dividend to 14 and continue with: 147 / 77

Step 4:
When dividing 147 by 77, we get 1 with a remainder of 70.
Put 1 as the next digit of the answer. 
Result so far: 51.0
Deduct 77 from 147 and we're left with 70.
Append the next digit (8) from the dividend to 70 and continue with: 708 / 77

Going ahead to step 5:
77 goes into 708 9 times with a remainder of 15.
The next digit of our result is 9. 
Result so far: 519.0
Subtract 693 from 708 to get 15.
Bring next digit (2) of the dividend behind the 15 and repeat the process: 152 / 77

Let's proceed to step 6:
152 divided by 77 is 1 with a remainder of 75.
The number 1 becomes the next digit in our result. 
Result so far: 5191.0
Subtracting 77 from 152 leaves us with 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Let's proceed to step 7:
750 divided by 77 is 9 with a remainder of 57.
Write down 9 as next digit of the result. 
Result so far: 5191.9
Deduct 693 from 750 and we're left with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Step 8:
77 can be fit into 570 7 times, resulting in a remainder of 31.
The number 7 becomes the next digit in our result. 
Result so far: 5191.97
If we subtract 539 from 570, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 9:
310 divided by 77 is 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 5191.974
If we subtract 308 from 310, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 10:
77 goes into 20 0 times with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 5191.974
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
When dividing 200 by 77, we get 2 with a remainder of 46.
The next digit of our result is 2. 
Result so far: 5191.97402
Subtract 154 from 200 to get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Let's proceed to step 12:
If we divide 460 by 77, we get 5 and a remainder of 75.
The number 5 becomes the next digit in our result. 
Result so far: 5191.974025
Subtracting 385 from 460 leaves us with 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Let's proceed to step 13:
If we divide 750 by 77, we get 9 and a remainder of 57.
The number 9 becomes the next digit in our result. 
Result so far: 5191.9740259
If we take 693 away from 750, we end up with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Let's proceed to step 14:
77 can be fit into 570 7 times, resulting in a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 5191.97402597
If we take 539 away from 570, 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.

In conclusion, the division gives 5191.97402597 with a balance of 3.1e-08.