380187 divided by 40 
We want to divide 380187 by 40.

Going ahead to step 1:
40 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 40

Step 2:
When dividing 38 by 40, we get 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 38, we get 38.
Fetch the next digit (0) from the dividend, attach it to 38 and continue: 380 / 40

On to step 3:
When dividing 380 by 40, we get 9 with a remainder of 20.
The next digit of our result is 9. 
Result so far: 9.0
If we subtract 360 from 380, we get 20.
Include the next digit (1) from the dividend after 20, then repeat: 201 / 40

Step 4:
40 can be fit into 201 5 times, resulting in a remainder of 1.
The next digit of our result is 5. 
Result so far: 95.0
If we take 200 away from 201, we end up with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 40

Let's proceed to step 5:
40 goes into 18 0 times with a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 950.0
The remainder is 18 after subtracting 0 from 18.
Bring next digit (7) of the dividend behind the 18 and repeat the process: 187 / 40

Advancing to step 6:
The number 40 fits into 187 4 times, leaving a remainder of 27.
Write down 4 as next digit of the result. 
Result so far: 9504.0
Deduct 160 from 187 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 7:
40 goes into 270 6 times with a remainder of 30.
The number 6 becomes the next digit in our result. 
Result so far: 9504.6
Deduct 240 from 270 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 9504.67
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 9:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 9504.675
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 9504.675
If we take 0 away from 0, we end up 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.

Let's proceed to step 11:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 9504.675
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.

The final outcome is 9504.675, with a leftover of 0.0.