We're dividing 39987229 by 401 
We want to divide 39987229 by 401.

Going ahead to step 1:
401 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 401

Step 2:
The number 401 fits into 39 0 times, leaving a remainder of 39.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Fetch the next digit (9) from the dividend, attach it to 39 and continue: 399 / 401

Going ahead to step 3:
When dividing 399 by 401, we get 0 with a remainder of 399.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 399, we end up with 399.
Take the next digit (8) from the dividend and append it to 399, then repeat: 3998 / 401

Let's proceed to step 4:
401 goes into 3998 9 times with a remainder of 389.
The next digit of our result is 9. 
Result so far: 9.0
Deduct 3609 from 3998 and we're left with 389.
Grab the next digit (7) from the dividend, add it to 389, then carry on: 3897 / 401

Going ahead to step 5:
The number 401 fits into 3897 9 times, leaving a remainder of 288.
Put 9 as the next digit of the answer. 
Result so far: 99.0
Subtracting 3609 from 3897 leaves us with 288.
Include the next digit (2) from the dividend after 288, then repeat: 2882 / 401

Let's proceed to step 6:
The number 401 fits into 2882 7 times, leaving a remainder of 75.
The number 7 becomes the next digit in our result. 
Result so far: 997.0
The remainder is 75 after subtracting 2807 from 2882.
Include the next digit (2) from the dividend after 75, then repeat: 752 / 401

On to step 7:
752 divided by 401 is 1 with a remainder of 351.
Use 1 as the next digit of our solution. 
Result so far: 9971.0
If we subtract 401 from 752, we get 351.
Take the next digit (9) from the dividend and append it to 351, then repeat: 3519 / 401

Advancing to step 8:
3519 divided by 401 is 8 with a remainder of 311.
Use 8 as the next digit of our solution. 
Result so far: 99718.0
The remainder is 311 after subtracting 3208 from 3519.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3110, and continue the process.

Step 9:
When dividing 3110 by 401, we get 7 with a remainder of 303.
Put 7 as the next digit of the answer. 
Result so far: 99718.7
The remainder is 303 after subtracting 2807 from 3110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3030, and continue the process.

Step 10:
When dividing 3030 by 401, we get 7 with a remainder of 223.
Put 7 as the next digit of the answer. 
Result so far: 99718.77
If we subtract 2807 from 3030, we get 223.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2230, and continue the process.

Our division results in 99718.77 with a remaining 0.223.