We're dividing 164221 by 42 
We're looking to find how many times 42 goes into 164221.

Step 1:
If we divide 1 by 42, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 42

Going ahead to step 2:
42 goes into 16 0 times with a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 16 after subtracting 0 from 16.
Bring next digit (4) of the dividend behind the 16 and repeat the process: 164 / 42

Going ahead to step 3:
42 goes into 164 3 times with a remainder of 38.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 126 from 164, we get 38.
Include the next digit (2) from the dividend after 38, then repeat: 382 / 42

Advancing to step 4:
The number 42 fits into 382 9 times, leaving a remainder of 4.
The next digit of our result is 9. 
Result so far: 39.0
Deduct 378 from 382 and we're left with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 42

Advancing to step 5:
42 divided by 42 is 1 with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 391.0
Subtracting 42 from 42 leaves us with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 42

Advancing to step 6:
When dividing 1 by 42, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 3910.0
If we take 0 away from 1, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
10 divided by 42 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 3910.0
If we subtract 0 from 10, we 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 8:
42 goes into 100 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 3910.02
Deduct 84 from 100 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 9:
160 divided by 42 is 3 with a remainder of 34.
The number 3 becomes the next digit in our result. 
Result so far: 3910.023
Deduct 126 from 160 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 10:
If we divide 340 by 42, we get 8 and a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 3910.0238
If we subtract 336 from 340, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 11:
The number 42 fits into 40 0 times, leaving a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 3910.0238
If we take 0 away from 40, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 12:
The number 42 fits into 400 9 times, leaving a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 3910.023809
If we take 378 away from 400, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 13:
42 goes into 220 5 times with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 3910.0238095
Deduct 210 from 220 and we're left 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.

Moving on to step 14:
If we divide 100 by 42, we get 2 and a remainder of 16.
The next digit of our result is 2. 
Result so far: 3910.02380952
Subtracting 84 from 100 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

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