We look at the division of 505227 by 24 
We want to divide 505227 by 24.

Advancing to step 1:
The number 24 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 24

Moving on to step 2:
If we divide 50 by 24, we get 2 and a remainder of 2.
The next digit of our result is 2. 
Result so far: 2.0
Subtracting 48 from 50 leaves us with 2.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 24

Let's proceed to step 3:
25 divided by 24 is 1 with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 21.0
Subtracting 24 from 25 leaves us with 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 24

On to step 4:
24 goes into 12 0 times with a remainder of 12.
Write down 0 as next digit of the result. 
Result so far: 210.0
If we subtract 0 from 12, we get 12.
Bring next digit (2) of the dividend behind the 12 and repeat the process: 122 / 24

Going ahead to step 5:
The number 24 fits into 122 5 times, leaving a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 2105.0
If we take 120 away from 122, we end up with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 24

Going ahead to step 6:
24 can be fit into 27 1 times, resulting in a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 21051.0
Subtracting 24 from 27 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
30 divided by 24 is 1 with a remainder of 6.
Put 1 as the next digit of the answer. 
Result so far: 21051.1
If we subtract 24 from 30, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
If we divide 60 by 24, we get 2 and a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 21051.12
If we take 48 away from 60, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 9:
The number 24 fits into 120 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 21051.125
If we subtract 120 from 120, 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.

Let's proceed to step 10:
The number 24 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21051.125
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.

Moving on to step 11:
24 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 21051.125
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.

Our division results in 21051.125 with a remaining 0.0.