42165 divided by 45 
We're looking to find how many times 45 goes into 42165.

On to step 1:
The number 45 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 45

Step 2:
If we divide 42 by 45, we get 0 and a remainder of 42.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 42 after subtracting 0 from 42.
Take the next digit (1) from the dividend and append it to 42, then repeat: 421 / 45

Advancing to step 3:
45 can be fit into 421 9 times, resulting in a remainder of 16.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
If we subtract 405 from 421, we get 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 45

Moving on to step 4:
166 divided by 45 is 3 with a remainder of 31.
The next digit of our result is 3. 
Result so far: 93.0
The remainder is 31 after subtracting 135 from 166.
Bring next digit (5) of the dividend behind the 31 and repeat the process: 315 / 45

Moving on to step 5:
The number 45 fits into 315 7 times, leaving a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 937.0
If we take 315 away from 315, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 6:
45 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 937.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 7:
The number 45 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 937.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.

In conclusion, the division gives 937.0 with a balance of 0.0.