We look at the division of 387851 by 45 
We're looking to find how many times 45 goes into 387851.

Going ahead to step 1:
3 divided by 45 is 0 with 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.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 45

Moving on to step 2:
When dividing 38 by 45, we get 0 with 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.
Take the next digit (7) from the dividend and append it to 38, then repeat: 387 / 45

Going ahead to step 3:
The number 45 fits into 387 8 times, leaving a remainder of 27.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
The remainder is 27 after subtracting 360 from 387.
Take the next digit (8) from the dividend and append it to 27, then repeat: 278 / 45

Going ahead to step 4:
If we divide 278 by 45, we get 6 and a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 86.0
Subtracting 270 from 278 leaves us with 8.
Grab the next digit (5) from the dividend, add it to 8, then carry on: 85 / 45

Moving on to step 5:
85 divided by 45 is 1 with a remainder of 40.
Put 1 as the next digit of the answer. 
Result so far: 861.0
If we take 45 away from 85, we end up with 40.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 45

Advancing to step 6:
When dividing 401 by 45, we get 8 with a remainder of 41.
Put 8 as the next digit of the answer. 
Result so far: 8618.0
The remainder is 41 after subtracting 360 from 401.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Going ahead to step 7:
If we divide 410 by 45, we get 9 and a remainder of 5.
Record the quotient 9 as the next digit in the result. 
Result so far: 8618.9
Subtracting 405 from 410 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
45 can be fit into 50 1 times, resulting in a remainder of 5.
The next digit of our result is 1. 
Result so far: 8618.91
Deduct 45 from 50 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 9:
When dividing 50 by 45, we get 1 with a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 8618.911
The remainder is 5 after subtracting 45 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The quotient of the division is 8618.911, and the remainder is 0.0005.