We divide 165822 by 45
Our goal is to divide 165822 by 45.

Let's proceed to step 1:
1 divided by 45 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 45

Moving on to step 2:
If we divide 16 by 45, we get 0 and a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Include the next digit (5) from the dividend after 16, then repeat: 165 / 45

On to step 3:
45 can be fit into 165 3 times, resulting in a remainder of 30.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 135 from 165 leaves us with 30.
Fetch the next digit (8) from the dividend, attach it to 30 and continue: 308 / 45

Step 4:
When dividing 308 by 45, we get 6 with a remainder of 38.
Put 6 as the next digit of the answer. 
Result so far: 36.0
Deduct 270 from 308 and we're left with 38.
Append the next digit (2) from the dividend to 38 and continue with: 382 / 45

On to step 5:
45 goes into 382 8 times with a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 368.0
The remainder is 22 after subtracting 360 from 382.
Fetch the next digit (2) from the dividend, attach it to 22 and continue: 222 / 45

Going ahead to step 6:
45 goes into 222 4 times with a remainder of 42.
The number 4 becomes the next digit in our result. 
Result so far: 3684.0
If we take 180 away from 222, we end up with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Step 7:
If we divide 420 by 45, we get 9 and a remainder of 15.
Put 9 as the next digit of the answer. 
Result so far: 3684.9
Subtract 405 from 420 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 8:
45 goes into 150 3 times with a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 3684.93
The remainder is 15 after subtracting 135 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 9:
150 divided by 45 is 3 with a remainder of 15.
Record the quotient 3 as the next digit in the result. 
Result so far: 3684.933
If we take 135 away from 150, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The final result is 3684.933 with a remainder of 0.0015.