We look at the division of 505066 by 4 
Our goal is to divide 505066 by 4.

Step 1:
When dividing 5 by 4, we get 1 with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 4 away from 5, we end up with 1.
Bring next digit (0) of the dividend behind the 1 and repeat the process: 10 / 4

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

Let's proceed to step 3:
4 can be fit into 25 6 times, resulting in a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 126.0
Deduct 24 from 25 and we're left with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 4

Let's proceed to step 4:
When dividing 10 by 4, we get 2 with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 1262.0
The remainder is 2 after subtracting 8 from 10.
Bring next digit (6) of the dividend behind the 2 and repeat the process: 26 / 4

Going ahead to step 5:
If we divide 26 by 4, we get 6 and a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 12626.0
If we subtract 24 from 26, we get 2.
Bring next digit (6) of the dividend behind the 2 and repeat the process: 26 / 4

Advancing to step 6:
If we divide 26 by 4, we get 6 and a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 126266.0
If we subtract 24 from 26, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
4 goes into 20 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 126266.5
Subtract 20 from 20 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.

On to step 8:
If we divide 0 by 4, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 126266.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.

Let's proceed to step 9:
If we divide 0 by 4, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 126266.5
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.

The final outcome is 126266.5, with a leftover of 0.0.