540512 divided by 2 
We want to figure out the number of times 540512 can be divided by 2.

Going ahead to step 1:
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: 2.0
If we subtract 4 from 5, we get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 2

Going ahead to step 2:
If we divide 14 by 2, we get 7 and a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 27.0
Subtract 14 from 14 to get 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 2

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.
Fetch the next digit (5) from the dividend, attach it to 0 and continue: 5 / 2

Advancing to step 4:
The number 2 fits into 5 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2702.0
Subtract 4 from 5 to get 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 2

Moving on to step 5:
2 can be fit into 11 5 times, resulting in a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 27025.0
Deduct 10 from 11 and we're left with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 2

Step 6:
The number 2 fits into 12 6 times, leaving a remainder of 0.
Write down 6 as next digit of the result. 
Result so far: 270256.0
If we take 12 away from 12, we end up 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.

Advancing to step 7:
When dividing 0 by 2, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 270256.0
If we subtract 0 from 0, we 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.

On to step 8:
2 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 270256.0
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.

The final result is 270256.0 with a remainder of 0.0.