165774 divided by 42 
We're looking to find how many times 42 goes into 165774.

Let's proceed to step 1:
1 divided by 42 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 42

Let's proceed to step 2:
16 divided by 42 is 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 42

Advancing to step 3:
42 can be fit into 165 3 times, resulting in a remainder of 39.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 126 from 165, we get 39.
Bring next digit (7) of the dividend behind the 39 and repeat the process: 397 / 42

Moving on to step 4:
When dividing 397 by 42, we get 9 with a remainder of 19.
The next digit of our result is 9. 
Result so far: 39.0
Deduct 378 from 397 and we're left with 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 42

Moving on to step 5:
42 goes into 197 4 times with a remainder of 29.
The number 4 becomes the next digit in our result. 
Result so far: 394.0
Subtracting 168 from 197 leaves us with 29.
Include the next digit (4) from the dividend after 29, then repeat: 294 / 42

On to step 6:
294 divided by 42 is 7 with a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 3947.0
If we subtract 294 from 294, we 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.

Step 7:
The number 42 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 3947.0
Subtract 0 from 0 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 8:
0 divided by 42 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 3947.0
If we subtract 0 from 0, we 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.

After the division, we end up with 3947.0 and a remainder of 0.0.