We're dividing 40100 by 31 
Our goal is to divide 40100 by 31.

On to step 1:
The number 31 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 31

Going ahead to step 2:
When dividing 40 by 31, we get 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 40 leaves us with 9.
Append the next digit (1) from the dividend to 9 and continue with: 91 / 31

Going ahead to step 3:
31 goes into 91 2 times with a remainder of 29.
Write down 2 as next digit of the result. 
Result so far: 12.0
Deduct 62 from 91 and we're left with 29.
Take the next digit (0) from the dividend and append it to 29, then repeat: 290 / 31

Moving on to step 4:
When dividing 290 by 31, we get 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 129.0
The remainder is 11 after subtracting 279 from 290.
Append the next digit (0) from the dividend to 11 and continue with: 110 / 31

Moving on to step 5:
31 goes into 110 3 times with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 1293.0
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 6:
31 can be fit into 170 5 times, resulting in a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 1293.5
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 7:
If we divide 150 by 31, we get 4 and a remainder of 26.
The next digit of our result is 4. 
Result so far: 1293.54
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 8:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The next digit of our result is 8. 
Result so far: 1293.548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 9:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 1293.5483
If we take 93 away from 120, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 10:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 1293.54838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 11:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 1293.548387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 12:
31 can be fit into 30 0 times, resulting in a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 1293.548387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 13:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 1293.54838709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

In conclusion, the division gives 1293.54838709 with a balance of 2.1e-08.