Let's divide 502042 by 22
We're looking to find how many times 22 goes into 502042.

Going ahead to step 1:
The number 22 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 22

Advancing to step 2:
22 goes into 50 2 times with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 44 from 50, we get 6.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 22

Step 3:
22 goes into 62 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 22.0
If we subtract 44 from 62, we get 18.
Bring next digit (0) of the dividend behind the 18 and repeat the process: 180 / 22

Going ahead to step 4:
The number 22 fits into 180 8 times, leaving a remainder of 4.
The next digit of our result is 8. 
Result so far: 228.0
If we take 176 away from 180, we end up with 4.
Grab the next digit (4) from the dividend, add it to 4, then carry on: 44 / 22

Moving on to step 5:
44 divided by 22 is 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 2282.0
Subtract 44 from 44 to get 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 22

Going ahead to step 6:
22 can be fit into 2 0 times, resulting in a remainder of 2.
The next digit of our result is 0. 
Result so far: 22820.0
If we subtract 0 from 2, 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.

Moving on to step 7:
20 divided by 22 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 22820.0
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
200 divided by 22 is 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 22820.09
The remainder is 2 after subtracting 198 from 200.
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 9:
22 can be fit into 20 0 times, resulting in a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 22820.09
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 10:
22 goes into 200 9 times with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 22820.0909
If we subtract 198 from 200, 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.

Advancing to step 11:
22 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 22820.0909
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 12:
22 goes into 200 9 times with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 22820.090909
Subtracting 198 from 200 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 13:
When dividing 20 by 22, we get 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 22820.090909
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 14:
22 goes into 200 9 times with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 22820.09090909
If we subtract 198 from 200, 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.

In conclusion, the division gives 22820.09090909 with a balance of 2e-09.