We divide 501018 by 2
We want to divide 501018 by 2.

Let's proceed to step 1:
2 can be fit into 5 2 times, resulting in a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 4 from 5 to get 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 2

Let's proceed to step 2:
If we divide 10 by 2, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 25.0
If we take 10 away from 10, we end up with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 2

Advancing to step 3:
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: 250.0
Subtracting 0 from 1 leaves us with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 2

Let's proceed to step 4:
If we divide 10 by 2, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 2505.0
Subtracting 10 from 10 leaves us with 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 2

Step 5:
1 divided by 2 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 25050.0
Subtract 0 from 1 to get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 2

Moving on to step 6:
If we divide 18 by 2, we get 9 and a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 250509.0
If we subtract 18 from 18, 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 7:
When dividing 0 by 2, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 250509.0
The remainder is 0 after subtracting 0 from 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 8:
0 divided by 2 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 250509.0
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 final result is 250509.0 with a remainder of 0.0.