We look at the division of 501940 by 22 
Our goal is to divide 501940 by 22.

On to step 1:
5 divided by 22 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 22

Step 2:
When dividing 50 by 22, we get 2 with a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 44 from 50 to get 6.
Append the next digit (1) from the dividend to 6 and continue with: 61 / 22

Going ahead to step 3:
If we divide 61 by 22, we get 2 and a remainder of 17.
Put 2 as the next digit of the answer. 
Result so far: 22.0
The remainder is 17 after subtracting 44 from 61.
Append the next digit (9) from the dividend to 17 and continue with: 179 / 22

Let's proceed to step 4:
22 can be fit into 179 8 times, resulting in a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 228.0
If we take 176 away from 179, we end up with 3.
Append the next digit (4) from the dividend to 3 and continue with: 34 / 22

On to step 5:
The number 22 fits into 34 1 times, leaving a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 2281.0
Deduct 22 from 34 and we're left with 12.
Include the next digit (0) from the dividend after 12, then repeat: 120 / 22

Let's proceed to step 6:
22 goes into 120 5 times with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 22815.0
Subtract 110 from 120 to get 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 7:
100 divided by 22 is 4 with a remainder of 12.
The next digit of our result is 4. 
Result so far: 22815.4
Deduct 88 from 100 and we're left 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.

Step 8:
120 divided by 22 is 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 22815.45
The remainder is 10 after subtracting 110 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
When dividing 100 by 22, we get 4 with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 22815.454
Deduct 88 from 100 and we're left 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.

Advancing to step 10:
When dividing 120 by 22, we get 5 with a remainder of 10.
The next digit of our result is 5. 
Result so far: 22815.4545
If we take 110 away from 120, we end up 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.

Advancing to step 11:
If we divide 100 by 22, we get 4 and a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 22815.45454
Subtracting 88 from 100 leaves us 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.

Advancing to step 12:
The number 22 fits into 120 5 times, leaving a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 22815.454545
Subtract 110 from 120 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 13:
The number 22 fits into 100 4 times, leaving a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 22815.4545454
Deduct 88 from 100 and we're left 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 14:
120 divided by 22 is 5 with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 22815.45454545
Subtracting 110 from 120 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.

After the division, we end up with 22815.45454545 and a remainder of 1e-08.