We look at the division of 540505 by 77 
We want to figure out the number of times 540505 can be divided by 77.

On to step 1:
When dividing 5 by 77, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 77

Step 2:
77 can be fit into 54 0 times, resulting in a remainder of 54.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 54 to get 54.
Take the next digit (0) from the dividend and append it to 54, then repeat: 540 / 77

Step 3:
77 goes into 540 7 times with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
The remainder is 1 after subtracting 539 from 540.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 77

Moving on to step 4:
The number 77 fits into 15 0 times, leaving a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 70.0
Subtract 0 from 15 to get 15.
Take the next digit (0) from the dividend and append it to 15, then repeat: 150 / 77

Let's proceed to step 5:
When dividing 150 by 77, we get 1 with a remainder of 73.
The number 1 becomes the next digit in our result. 
Result so far: 701.0
If we subtract 77 from 150, we get 73.
Append the next digit (5) from the dividend to 73 and continue with: 735 / 77

Going ahead to step 6:
The number 77 fits into 735 9 times, leaving a remainder of 42.
The next digit of our result is 9. 
Result so far: 7019.0
Subtracting 693 from 735 leaves us with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 7:
77 goes into 420 5 times with a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 7019.5
If we take 385 away from 420, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

On to step 8:
When dividing 350 by 77, we get 4 with a remainder of 42.
Put 4 as the next digit of the answer. 
Result so far: 7019.54
The remainder is 42 after subtracting 308 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 9:
The number 77 fits into 420 5 times, leaving a remainder of 35.
The next digit of our result is 5. 
Result so far: 7019.545
If we take 385 away from 420, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 10:
77 goes into 350 4 times with a remainder of 42.
The number 4 becomes the next digit in our result. 
Result so far: 7019.5454
The remainder is 42 after subtracting 308 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

On to step 11:
420 divided by 77 is 5 with a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 7019.54545
Subtract 385 from 420 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 12:
77 can be fit into 350 4 times, resulting in a remainder of 42.
Use 4 as the next digit of our solution. 
Result so far: 7019.545454
Deduct 308 from 350 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Step 13:
77 can be fit into 420 5 times, resulting in a remainder of 35.
Record the quotient 5 as the next digit in the result. 
Result so far: 7019.5454545
The remainder is 35 after subtracting 385 from 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 14:
77 goes into 350 4 times with a remainder of 42.
The next digit of our result is 4. 
Result so far: 7019.54545454
Deduct 308 from 350 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

In conclusion, the division gives 7019.54545454 with a balance of 4.2e-08.