We're dividing 398474 by 77 
Our goal is to divide 398474 by 77.

Going ahead to step 1:
The number 77 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 77

Going ahead to step 2:
39 divided by 77 is 0 with a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Append the next digit (8) from the dividend to 39 and continue with: 398 / 77

Let's proceed to step 3:
77 can be fit into 398 5 times, resulting in a remainder of 13.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we subtract 385 from 398, we get 13.
Bring next digit (4) of the dividend behind the 13 and repeat the process: 134 / 77

Step 4:
77 goes into 134 1 times with a remainder of 57.
The number 1 becomes the next digit in our result. 
Result so far: 51.0
If we take 77 away from 134, we end up with 57.
Bring next digit (7) of the dividend behind the 57 and repeat the process: 577 / 77

Step 5:
The number 77 fits into 577 7 times, leaving a remainder of 38.
Use 7 as the next digit of our solution. 
Result so far: 517.0
Deduct 539 from 577 and we're left with 38.
Grab the next digit (4) from the dividend, add it to 38, then carry on: 384 / 77

Going ahead to step 6:
When dividing 384 by 77, we get 4 with a remainder of 76.
Write down 4 as next digit of the result. 
Result so far: 5174.0
Subtracting 308 from 384 leaves us with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Going ahead to step 7:
760 divided by 77 is 9 with a remainder of 67.
The number 9 becomes the next digit in our result. 
Result so far: 5174.9
If we subtract 693 from 760, we get 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

On to step 8:
77 goes into 670 8 times with a remainder of 54.
Record the quotient 8 as the next digit in the result. 
Result so far: 5174.98
The remainder is 54 after subtracting 616 from 670.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Let's proceed to step 9:
540 divided by 77 is 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 5174.987
Subtract 539 from 540 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 10:
77 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 5174.987
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 11:
The number 77 fits into 100 1 times, leaving a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 5174.98701
Deduct 77 from 100 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 12:
230 divided by 77 is 2 with a remainder of 76.
Put 2 as the next digit of the answer. 
Result so far: 5174.987012
If we take 154 away from 230, we end up with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Let's proceed to step 13:
77 can be fit into 760 9 times, resulting in a remainder of 67.
The next digit of our result is 9. 
Result so far: 5174.9870129
The remainder is 67 after subtracting 693 from 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Let's proceed to step 14:
The number 77 fits into 670 8 times, leaving a remainder of 54.
Put 8 as the next digit of the answer. 
Result so far: 5174.98701298
If we subtract 616 from 670, we get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

The quotient of the division is 5174.98701298, and the remainder is 5.4e-08.