We look at the division of 165181 by 9 
Our goal is to divide 165181 by 9.

Going ahead to step 1:
The number 9 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 9

Going ahead to step 2:
9 can be fit into 16 1 times, resulting in a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 9 from 16 leaves us with 7.
Grab the next digit (5) from the dividend, add it to 7, then carry on: 75 / 9

Moving on to step 3:
9 goes into 75 8 times with a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
If we subtract 72 from 75, we get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 9

On to step 4:
When dividing 31 by 9, we get 3 with a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 183.0
Subtract 27 from 31 to get 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 9

Step 5:
The number 9 fits into 48 5 times, leaving a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 1835.0
Deduct 45 from 48 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 9

Step 6:
9 can be fit into 31 3 times, resulting in a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 18353.0
Subtracting 27 from 31 leaves us 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.

Moving on to step 7:
The number 9 fits into 40 4 times, leaving a remainder of 4.
The next digit of our result is 4. 
Result so far: 18353.4
If we subtract 36 from 40, 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.

Step 8:
If we divide 40 by 9, we get 4 and a remainder of 4.
The next digit of our result is 4. 
Result so far: 18353.44
Deduct 36 from 40 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 quotient of the division is 18353.44, and the remainder is 0.004.