54165 ÷ 9 = 6018 R3
Let's divide 54165 by 9.

Step 1:
9 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of of the result. 
Result so far: 0
Subtract 0 from 5 to get 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 9

Step 2:
9 goes into 54 6 times with a remainder of 0.
Write down 6 as next digit of of the result. 
Result so far: 6
Subtract 54 from 54 to get 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 9

Step 3:
9 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of of the result. 
Result so far: 60
Subtract 0 from 1 to get 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 9

Step 4:
9 goes into 16 1 times with a remainder of 7.
Write down 1 as next digit of of the result. 
Result so far: 601
Subtract 9 from 16 to get 7.
Bring next digit (5) of the dividend behind the 7 and repeat the process: 75 / 9

Step 5:
9 goes into 75 8 times with a remainder of 3.
Write down 8 as next digit of of the result. 
Result so far: 6018
Subtract 72 from 75 to get 3.

The final result is 6018 with a remainder of 3.