We divide 396980 by 77
Our goal is to divide 396980 by 77.

Let's proceed to step 1:
If we divide 3 by 77, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 77

Going ahead to step 2:
39 divided by 77 is 0 with a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 39 and we're left with 39.
Grab the next digit (6) from the dividend, add it to 39, then carry on: 396 / 77

Let's proceed to step 3:
The number 77 fits into 396 5 times, leaving a remainder of 11.
Write down 5 as next digit of the result. 
Result so far: 5.0
The remainder is 11 after subtracting 385 from 396.
Bring next digit (9) of the dividend behind the 11 and repeat the process: 119 / 77

Going ahead to step 4:
77 goes into 119 1 times with a remainder of 42.
Write down 1 as next digit of the result. 
Result so far: 51.0
Subtracting 77 from 119 leaves us with 42.
Bring next digit (8) of the dividend behind the 42 and repeat the process: 428 / 77

Let's proceed to step 5:
The number 77 fits into 428 5 times, leaving a remainder of 43.
Record the quotient 5 as the next digit in the result. 
Result so far: 515.0
The remainder is 43 after subtracting 385 from 428.
Bring next digit (0) of the dividend behind the 43 and repeat the process: 430 / 77

Going ahead to step 6:
The number 77 fits into 430 5 times, leaving a remainder of 45.
The number 5 becomes the next digit in our result. 
Result so far: 5155.0
The remainder is 45 after subtracting 385 from 430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Moving on to step 7:
If we divide 450 by 77, we get 5 and a remainder of 65.
Record the quotient 5 as the next digit in the result. 
Result so far: 5155.5
If we subtract 385 from 450, we get 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Let's proceed to step 8:
77 goes into 650 8 times with a remainder of 34.
Write down 8 as next digit of the result. 
Result so far: 5155.58
The remainder is 34 after subtracting 616 from 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 9:
The number 77 fits into 340 4 times, leaving a remainder of 32.
Put 4 as the next digit of the answer. 
Result so far: 5155.584
Subtract 308 from 340 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 10:
The number 77 fits into 320 4 times, leaving a remainder of 12.
The next digit of our result is 4. 
Result so far: 5155.5844
Subtracting 308 from 320 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final outcome is 5155.5844, with a leftover of 0.00012.