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

Let's proceed to step 1:
77 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 77

On to step 2:
39 divided by 77 is 0 with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Include the next digit (6) from the dividend after 39, then repeat: 396 / 77

Advancing to step 3:
The number 77 fits into 396 5 times, leaving a remainder of 11.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 385 from 396, we get 11.
Include the next digit (6) from the dividend after 11, then repeat: 116 / 77

Let's proceed to step 4:
When dividing 116 by 77, we get 1 with a remainder of 39.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
Subtract 77 from 116 to get 39.
Fetch the next digit (7) from the dividend, attach it to 39 and continue: 397 / 77

Moving on to step 5:
The number 77 fits into 397 5 times, leaving a remainder of 12.
Write down 5 as next digit of the result. 
Result so far: 515.0
If we subtract 385 from 397, we get 12.
Include the next digit (4) from the dividend after 12, then repeat: 124 / 77

Going ahead to step 6:
When dividing 124 by 77, we get 1 with a remainder of 47.
The number 1 becomes the next digit in our result. 
Result so far: 5151.0
Deduct 77 from 124 and we're left with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

On to step 7:
When dividing 470 by 77, we get 6 with a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 5151.6
Deduct 462 from 470 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 8:
80 divided by 77 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 5151.61
Deduct 77 from 80 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 9:
The number 77 fits into 30 0 times, leaving a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 5151.61
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
The number 77 fits into 300 3 times, leaving a remainder of 69.
Record the quotient 3 as the next digit in the result. 
Result so far: 5151.6103
Subtracting 231 from 300 leaves us with 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

On to step 11:
77 goes into 690 8 times with a remainder of 74.
The next digit of our result is 8. 
Result so far: 5151.61038
Subtract 616 from 690 to get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Step 12:
The number 77 fits into 740 9 times, leaving a remainder of 47.
The next digit of our result is 9. 
Result so far: 5151.610389
Deduct 693 from 740 and we're left with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Going ahead to step 13:
470 divided by 77 is 6 with a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 5151.6103896
If we subtract 462 from 470, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 14:
80 divided by 77 is 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 5151.61038961
If we subtract 77 from 80, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The final outcome is 5151.61038961, with a leftover of 3e-09.