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

Let's proceed to step 1:
When dividing 5 by 2, we get 2 with a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 4 from 5, we get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 2

Moving on to step 2:
If we divide 11 by 2, we get 5 and a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 25.0
Deduct 10 from 11 and we're left with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 2

Advancing to step 3:
2 can be fit into 16 8 times, resulting in a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 258.0
If we subtract 16 from 16, we get 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 2

Advancing to step 4:
If we divide 1 by 2, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 2580.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 2

Going ahead to step 5:
When dividing 18 by 2, we get 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 25809.0
Deduct 18 from 18 and we're left with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 2

Going ahead to step 6:
When dividing 7 by 2, we get 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 258093.0
Subtracting 6 from 7 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.

Advancing to step 7:
2 goes into 10 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 258093.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.

Step 8:
2 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 258093.5
If we take 0 away from 0, 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 9:
0 divided by 2 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 258093.5
Subtracting 0 from 0 leaves us 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 outcome is 258093.5, with a leftover of 0.0.