397066 ÷ 77 
Our goal is to divide 397066 by 77.

Let's proceed to step 1:
77 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 77

Let's proceed to step 2:
When dividing 39 by 77, we get 0 with a remainder of 39.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Bring next digit (7) of the dividend behind the 39 and repeat the process: 397 / 77

Step 3:
77 can be fit into 397 5 times, resulting in a remainder of 12.
The next digit of our result is 5. 
Result so far: 5.0
If we take 385 away from 397, we end up with 12.
Bring next digit (0) of the dividend behind the 12 and repeat the process: 120 / 77

On to step 4:
If we divide 120 by 77, we get 1 and a remainder of 43.
Use 1 as the next digit of our solution. 
Result so far: 51.0
Subtract 77 from 120 to get 43.
Bring next digit (6) of the dividend behind the 43 and repeat the process: 436 / 77

Step 5:
When dividing 436 by 77, we get 5 with a remainder of 51.
Write down 5 as next digit of the result. 
Result so far: 515.0
If we take 385 away from 436, we end up with 51.
Include the next digit (6) from the dividend after 51, then repeat: 516 / 77

Moving on to step 6:
516 divided by 77 is 6 with a remainder of 54.
Put 6 as the next digit of the answer. 
Result so far: 5156.0
If we take 462 away from 516, we end up with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Going ahead to step 7:
540 divided by 77 is 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 5156.7
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.

Going ahead to step 8:
10 divided by 77 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 5156.7
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 9:
77 can be fit into 100 1 times, resulting in a remainder of 23.
The next digit of our result is 1. 
Result so far: 5156.701
Subtracting 77 from 100 leaves us 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 10:
230 divided by 77 is 2 with a remainder of 76.
Write down 2 as next digit of the result. 
Result so far: 5156.7012
The remainder is 76 after subtracting 154 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Step 11:
When dividing 760 by 77, we get 9 with a remainder of 67.
Write down 9 as next digit of the result. 
Result so far: 5156.70129
Subtract 693 from 760 to 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 12:
If we divide 670 by 77, we get 8 and a remainder of 54.
The next digit of our result is 8. 
Result so far: 5156.701298
If we take 616 away from 670, we end up with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

On to step 13:
The number 77 fits into 540 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 5156.7012987
If we subtract 539 from 540, we 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.

Let's proceed to step 14:
10 divided by 77 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 5156.7012987
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.

In conclusion, the division gives 5156.7012987 with a balance of 1e-08.