We're dividing 387267 by 45 
Our goal is to divide 387267 by 45.

Step 1:
The number 45 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 45

On to step 2:
The number 45 fits into 38 0 times, leaving a remainder of 38.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 38 leaves us with 38.
Include the next digit (7) from the dividend after 38, then repeat: 387 / 45

Going ahead to step 3:
45 goes into 387 8 times with a remainder of 27.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Subtract 360 from 387 to get 27.
Include the next digit (2) from the dividend after 27, then repeat: 272 / 45

On to step 4:
45 can be fit into 272 6 times, resulting in a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 86.0
If we subtract 270 from 272, we get 2.
Include the next digit (6) from the dividend after 2, then repeat: 26 / 45

Let's proceed to step 5:
If we divide 26 by 45, we get 0 and a remainder of 26.
The next digit of our result is 0. 
Result so far: 860.0
Subtract 0 from 26 to get 26.
Bring next digit (7) of the dividend behind the 26 and repeat the process: 267 / 45

Step 6:
45 can be fit into 267 5 times, resulting in a remainder of 42.
The next digit of our result is 5. 
Result so far: 8605.0
The remainder is 42 after subtracting 225 from 267.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Let's proceed to step 7:
420 divided by 45 is 9 with a remainder of 15.
Record the quotient 9 as the next digit in the result. 
Result so far: 8605.9
Subtract 405 from 420 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 8:
When dividing 150 by 45, we get 3 with a remainder of 15.
The next digit of our result is 3. 
Result so far: 8605.93
Subtract 135 from 150 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 9:
45 can be fit into 150 3 times, resulting in a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 8605.933
The remainder is 15 after subtracting 135 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The quotient of the division is 8605.933, and the remainder is 0.0015.