We look at the division of 40587357 by 401 
We want to figure out the number of times 40587357 can be divided by 401.

Advancing to step 1:
401 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 401

Moving on to step 2:
When dividing 40 by 401, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (5) from the dividend and append it to 40, then repeat: 405 / 401

On to step 3:
The number 401 fits into 405 1 times, leaving a remainder of 4.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 401 from 405 leaves us with 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 401

Let's proceed to step 4:
401 goes into 48 0 times with a remainder of 48.
The next digit of our result is 0. 
Result so far: 10.0
Subtract 0 from 48 to get 48.
Take the next digit (7) from the dividend and append it to 48, then repeat: 487 / 401

Let's proceed to step 5:
When dividing 487 by 401, we get 1 with a remainder of 86.
Put 1 as the next digit of the answer. 
Result so far: 101.0
Subtract 401 from 487 to get 86.
Append the next digit (3) from the dividend to 86 and continue with: 863 / 401

Step 6:
The number 401 fits into 863 2 times, leaving a remainder of 61.
Use 2 as the next digit of our solution. 
Result so far: 1012.0
Subtract 802 from 863 to get 61.
Include the next digit (5) from the dividend after 61, then repeat: 615 / 401

Going ahead to step 7:
401 goes into 615 1 times with a remainder of 214.
The number 1 becomes the next digit in our result. 
Result so far: 10121.0
The remainder is 214 after subtracting 401 from 615.
Grab the next digit (7) from the dividend, add it to 214, then carry on: 2147 / 401

Moving on to step 8:
The number 401 fits into 2147 5 times, leaving a remainder of 142.
Use 5 as the next digit of our solution. 
Result so far: 101215.0
The remainder is 142 after subtracting 2005 from 2147.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

Let's proceed to step 9:
401 goes into 1420 3 times with a remainder of 217.
Write down 3 as next digit of the result. 
Result so far: 101215.3
If we subtract 1203 from 1420, we get 217.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2170, and continue the process.

Step 10:
401 goes into 2170 5 times with a remainder of 165.
Record the quotient 5 as the next digit in the result. 
Result so far: 101215.35
If we take 2005 away from 2170, we end up with 165.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1650, and continue the process.

Step 11:
1650 divided by 401 is 4 with a remainder of 46.
Put 4 as the next digit of the answer. 
Result so far: 101215.354
If we take 1604 away from 1650, we end up with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Step 12:
When dividing 460 by 401, we get 1 with a remainder of 59.
The next digit of our result is 1. 
Result so far: 101215.3541
The remainder is 59 after subtracting 401 from 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Step 13:
590 divided by 401 is 1 with a remainder of 189.
The number 1 becomes the next digit in our result. 
Result so far: 101215.35411
If we take 401 away from 590, we end up with 189.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1890, and continue the process.

The final result is 101215.35411 with a remainder of 0.000189.