40587115 divided by 381 
We're looking to find how many times 381 goes into 40587115.

On to step 1:
The number 381 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 381

Step 2:
If we divide 40 by 381, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Append the next digit (5) from the dividend to 40 and continue with: 405 / 381

On to step 3:
If we divide 405 by 381, we get 1 and a remainder of 24.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 381 from 405 and we're left with 24.
Append the next digit (8) from the dividend to 24 and continue with: 248 / 381

On to step 4:
When dividing 248 by 381, we get 0 with a remainder of 248.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
The remainder is 248 after subtracting 0 from 248.
Take the next digit (7) from the dividend and append it to 248, then repeat: 2487 / 381

Moving on to step 5:
The number 381 fits into 2487 6 times, leaving a remainder of 201.
The number 6 becomes the next digit in our result. 
Result so far: 106.0
If we take 2286 away from 2487, we end up with 201.
Take the next digit (1) from the dividend and append it to 201, then repeat: 2011 / 381

Step 6:
If we divide 2011 by 381, we get 5 and a remainder of 106.
The number 5 becomes the next digit in our result. 
Result so far: 1065.0
If we subtract 1905 from 2011, we get 106.
Bring next digit (1) of the dividend behind the 106 and repeat the process: 1061 / 381

Moving on to step 7:
1061 divided by 381 is 2 with a remainder of 299.
The number 2 becomes the next digit in our result. 
Result so far: 10652.0
Subtract 762 from 1061 to get 299.
Bring next digit (5) of the dividend behind the 299 and repeat the process: 2995 / 381

On to step 8:
2995 divided by 381 is 7 with a remainder of 328.
Put 7 as the next digit of the answer. 
Result so far: 106527.0
The remainder is 328 after subtracting 2667 from 2995.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

On to step 9:
3280 divided by 381 is 8 with a remainder of 232.
Put 8 as the next digit of the answer. 
Result so far: 106527.8
Subtracting 3048 from 3280 leaves us with 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Moving on to step 10:
381 can be fit into 2320 6 times, resulting in a remainder of 34.
The number 6 becomes the next digit in our result. 
Result so far: 106527.86
If we take 2286 away from 2320, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 11:
381 can be fit into 340 0 times, resulting in a remainder of 340.
The number 0 becomes the next digit in our result. 
Result so far: 106527.86
Deduct 0 from 340 and we're left with 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Let's proceed to step 12:
381 can be fit into 3400 8 times, resulting in a remainder of 352.
The number 8 becomes the next digit in our result. 
Result so far: 106527.8608
If we take 3048 away from 3400, we end up with 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

Let's proceed to step 13:
381 can be fit into 3520 9 times, resulting in a remainder of 91.
Use 9 as the next digit of our solution. 
Result so far: 106527.86089
If we take 3429 away from 3520, we end up with 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 910, and continue the process.

On to step 14:
If we divide 910 by 381, we get 2 and a remainder of 148.
The next digit of our result is 2. 
Result so far: 106527.860892
Subtract 762 from 910 to get 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Let's proceed to step 15:
1480 divided by 381 is 3 with a remainder of 337.
Use 3 as the next digit of our solution. 
Result so far: 106527.8608923
Subtracting 1143 from 1480 leaves us with 337.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3370, and continue the process.

Going ahead to step 16:
381 goes into 3370 8 times with a remainder of 322.
The next digit of our result is 8. 
Result so far: 106527.86089238
If we subtract 3048 from 3370, we get 322.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3220, and continue the process.

The quotient of the division is 106527.86089238, and the remainder is 3.22e-07.