We're dividing 40845882 by 387 
We're looking to find how many times 387 goes into 40845882.

On to step 1:
387 can be fit into 4 0 times, resulting in a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 387

Step 2:
The number 387 fits into 40 0 times, leaving a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Append the next digit (8) from the dividend to 40 and continue with: 408 / 387

Let's proceed to step 3:
When dividing 408 by 387, we get 1 with a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 387 away from 408, we end up with 21.
Fetch the next digit (4) from the dividend, attach it to 21 and continue: 214 / 387

Advancing to step 4:
387 can be fit into 214 0 times, resulting in a remainder of 214.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
If we take 0 away from 214, we end up with 214.
Fetch the next digit (5) from the dividend, attach it to 214 and continue: 2145 / 387

Advancing to step 5:
387 can be fit into 2145 5 times, resulting in a remainder of 210.
Record the quotient 5 as the next digit in the result. 
Result so far: 105.0
The remainder is 210 after subtracting 1935 from 2145.
Append the next digit (8) from the dividend to 210 and continue with: 2108 / 387

Moving on to step 6:
387 can be fit into 2108 5 times, resulting in a remainder of 173.
The next digit of our result is 5. 
Result so far: 1055.0
The remainder is 173 after subtracting 1935 from 2108.
Bring next digit (8) of the dividend behind the 173 and repeat the process: 1738 / 387

Moving on to step 7:
The number 387 fits into 1738 4 times, leaving a remainder of 190.
Put 4 as the next digit of the answer. 
Result so far: 10554.0
Subtract 1548 from 1738 to get 190.
Bring next digit (2) of the dividend behind the 190 and repeat the process: 1902 / 387

Advancing to step 8:
387 can be fit into 1902 4 times, resulting in a remainder of 354.
The number 4 becomes the next digit in our result. 
Result so far: 105544.0
Subtract 1548 from 1902 to get 354.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3540, and continue the process.

Step 9:
The number 387 fits into 3540 9 times, leaving a remainder of 57.
Put 9 as the next digit of the answer. 
Result so far: 105544.9
Deduct 3483 from 3540 and we're left with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Let's proceed to step 10:
570 divided by 387 is 1 with a remainder of 183.
Record the quotient 1 as the next digit in the result. 
Result so far: 105544.91
Subtracting 387 from 570 leaves us with 183.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1830, and continue the process.

Step 11:
387 can be fit into 1830 4 times, resulting in a remainder of 282.
Use 4 as the next digit of our solution. 
Result so far: 105544.914
If we subtract 1548 from 1830, we get 282.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2820, and continue the process.

Let's proceed to step 12:
387 can be fit into 2820 7 times, resulting in a remainder of 111.
Write down 7 as next digit of the result. 
Result so far: 105544.9147
Subtracting 2709 from 2820 leaves us with 111.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1110, and continue the process.

Advancing to step 13:
387 goes into 1110 2 times with a remainder of 336.
Record the quotient 2 as the next digit in the result. 
Result so far: 105544.91472
If we subtract 774 from 1110, we get 336.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3360, and continue the process.

Advancing to step 14:
If we divide 3360 by 387, we get 8 and a remainder of 264.
The number 8 becomes the next digit in our result. 
Result so far: 105544.914728
If we subtract 3096 from 3360, we get 264.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

Going ahead to step 15:
When dividing 2640 by 387, we get 6 with a remainder of 318.
Record the quotient 6 as the next digit in the result. 
Result so far: 105544.9147286
If we take 2322 away from 2640, we end up with 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Step 16:
387 can be fit into 3180 8 times, resulting in a remainder of 84.
Use 8 as the next digit of our solution. 
Result so far: 105544.91472868
If we subtract 3096 from 3180, we get 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

The quotient of the division is 105544.91472868, and the remainder is 8.4e-08.