We're dividing 506178 by 2 
We're looking to find how many times 2 goes into 506178.

Let's proceed to step 1:
When dividing 5 by 2, we get 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 4 from 5 leaves us with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 2

On to step 2:
If we divide 10 by 2, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 25.0
If we subtract 10 from 10, we get 0.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 2

Going ahead to step 3:
6 divided by 2 is 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 253.0
The remainder is 0 after subtracting 6 from 6.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 2

Let's proceed to step 4:
2 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 2530.0
If we take 0 away from 1, we end up with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 2

On to step 5:
When dividing 17 by 2, we get 8 with a remainder of 1.
The next digit of our result is 8. 
Result so far: 25308.0
Subtracting 16 from 17 leaves us with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 2

Moving on to step 6:
When dividing 18 by 2, we get 9 with a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 253089.0
The remainder is 0 after subtracting 18 from 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 7:
2 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 253089.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.

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: 253089.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 outcome is 253089.0, with a leftover of 0.0.