We're dividing 22171 by 42 
Let's see how many times 42 fits into 22171.

On to step 1:
42 can be fit into 2 0 times, resulting in a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 42

On to step 2:
If we divide 22 by 42, we get 0 and a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 22, we end up with 22.
Append the next digit (1) from the dividend to 22 and continue with: 221 / 42

Advancing to step 3:
The number 42 fits into 221 5 times, leaving a remainder of 11.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 210 from 221 and we're left with 11.
Fetch the next digit (7) from the dividend, attach it to 11 and continue: 117 / 42

Moving on to step 4:
If we divide 117 by 42, we get 2 and a remainder of 33.
Record the quotient 2 as the next digit in the result. 
Result so far: 52.0
Deduct 84 from 117 and we're left with 33.
Include the next digit (1) from the dividend after 33, then repeat: 331 / 42

Let's proceed to step 5:
When dividing 331 by 42, we get 7 with a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 527.0
If we subtract 294 from 331, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 6:
42 goes into 370 8 times with a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 527.8
The remainder is 34 after subtracting 336 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 7:
When dividing 340 by 42, we get 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 527.88
Deduct 336 from 340 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 527.88, with a leftover of 0.004.