We look at the division of 501227 by 20 
We want to divide 501227 by 20.

Let's proceed to step 1:
When dividing 5 by 20, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 20

Going ahead to step 2:
50 divided by 20 is 2 with a remainder of 10.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 40 from 50 and we're left with 10.
Take the next digit (1) from the dividend and append it to 10, then repeat: 101 / 20

Step 3:
20 goes into 101 5 times with a remainder of 1.
The next digit of our result is 5. 
Result so far: 25.0
Deduct 100 from 101 and we're left with 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 20

Going ahead to step 4:
20 goes into 12 0 times with a remainder of 12.
The next digit of our result is 0. 
Result so far: 250.0
If we subtract 0 from 12, we get 12.
Fetch the next digit (2) from the dividend, attach it to 12 and continue: 122 / 20

Let's proceed to step 5:
If we divide 122 by 20, we get 6 and a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 2506.0
If we subtract 120 from 122, we get 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 20

Step 6:
20 goes into 27 1 times with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 25061.0
The remainder is 7 after subtracting 20 from 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
20 goes into 70 3 times with a remainder of 10.
Put 3 as the next digit of the answer. 
Result so far: 25061.3
Subtracting 60 from 70 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 8:
The number 20 fits into 100 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 25061.35
Subtract 100 from 100 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.

Let's proceed to step 9:
If we divide 0 by 20, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 25061.35
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 10:
The number 20 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 25061.35
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.

In conclusion, the division gives 25061.35 with a balance of 0.0.