We're dividing 366040 by 9 
We want to figure out the number of times 366040 can be divided by 9.

Step 1:
9 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (6) from the dividend, attach it to 3 and continue: 36 / 9

Going ahead to step 2:
When dividing 36 by 9, we get 4 with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Deduct 36 from 36 and we're left with 0.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 9

On to step 3:
When dividing 6 by 9, we get 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
Subtracting 0 from 6 leaves us with 6.
Take the next digit (0) from the dividend and append it to 6, then repeat: 60 / 9

Let's proceed to step 4:
9 goes into 60 6 times with a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 406.0
If we take 54 away from 60, we end up with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 9

Moving on to step 5:
When dividing 64 by 9, we get 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 4067.0
Subtract 63 from 64 to get 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 9

Advancing to step 6:
9 goes into 10 1 times with a remainder of 1.
The next digit of our result is 1. 
Result so far: 40671.0
If we take 9 away from 10, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 7:
If we divide 10 by 9, we get 1 and a remainder of 1.
The next digit of our result is 1. 
Result so far: 40671.1
If we subtract 9 from 10, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 8:
If we divide 10 by 9, we get 1 and a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 40671.11
If we subtract 9 from 10, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Our division results in 40671.11 with a remaining 0.001.