We're dividing 40185 by 9 
Let's see how many times 9 fits into 40185.

On to step 1:
9 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 9

Going ahead to step 2:
9 can be fit into 40 4 times, resulting in a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 36 from 40 and we're left with 4.
Bring next digit (1) of the dividend behind the 4 and repeat the process: 41 / 9

On to step 3:
The number 9 fits into 41 4 times, leaving a remainder of 5.
The number 4 becomes the next digit in our result. 
Result so far: 44.0
The remainder is 5 after subtracting 36 from 41.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 9

Let's proceed to step 4:
58 divided by 9 is 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 446.0
Subtract 54 from 58 to get 4.
Take the next digit (5) from the dividend and append it to 4, then repeat: 45 / 9

Going ahead to step 5:
When dividing 45 by 9, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 4465.0
Deduct 45 from 45 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.

Moving on to step 6:
0 divided by 9 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 4465.0
Subtracting 0 from 0 leaves us 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.

Going ahead to step 7:
9 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 4465.0
Subtracting 0 from 0 leaves us 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.

Our division results in 4465.0 with a remaining 0.0.