Let's divide 540501 by 2
Let's see how many times 2 fits into 540501.

Advancing to step 1:
2 can be fit into 5 2 times, resulting in a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 1 after subtracting 4 from 5.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 2

Let's proceed to step 2:
When dividing 14 by 2, we get 7 with a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 27.0
The remainder is 0 after subtracting 14 from 14.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 2

Advancing to step 3:
0 divided by 2 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 270.0
If we subtract 0 from 0, we get 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 2

Going ahead to step 4:
2 goes into 5 2 times with a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 2702.0
Deduct 4 from 5 and we're left with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 2

Going ahead to step 5:
When dividing 10 by 2, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 27025.0
Deduct 10 from 10 and we're left with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 2

Advancing to step 6:
2 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 270250.0
Subtracting 0 from 1 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
10 divided by 2 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 270250.5
Subtract 10 from 10 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
If we divide 0 by 2, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 270250.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
When dividing 0 by 2, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 270250.5
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 270250.5, and the remainder is 0.0.