40221515 divided by 311 
Our goal is to divide 40221515 by 311.

Advancing to step 1:
4 divided by 311 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 311

Going ahead to step 2:
40 divided by 311 is 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Bring next digit (2) of the dividend behind the 40 and repeat the process: 402 / 311

On to step 3:
311 goes into 402 1 times with a remainder of 91.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 311 away from 402, we end up with 91.
Take the next digit (2) from the dividend and append it to 91, then repeat: 912 / 311

Step 4:
311 can be fit into 912 2 times, resulting in a remainder of 290.
Write down 2 as next digit of the result. 
Result so far: 12.0
Subtract 622 from 912 to get 290.
Append the next digit (1) from the dividend to 290 and continue with: 2901 / 311

Let's proceed to step 5:
311 goes into 2901 9 times with a remainder of 102.
The number 9 becomes the next digit in our result. 
Result so far: 129.0
Subtracting 2799 from 2901 leaves us with 102.
Bring next digit (5) of the dividend behind the 102 and repeat the process: 1025 / 311

Advancing to step 6:
311 goes into 1025 3 times with a remainder of 92.
Write down 3 as next digit of the result. 
Result so far: 1293.0
If we subtract 933 from 1025, we get 92.
Bring next digit (1) of the dividend behind the 92 and repeat the process: 921 / 311

Moving on to step 7:
The number 311 fits into 921 2 times, leaving a remainder of 299.
Use 2 as the next digit of our solution. 
Result so far: 12932.0
If we take 622 away from 921, we end up with 299.
Include the next digit (5) from the dividend after 299, then repeat: 2995 / 311

On to step 8:
311 can be fit into 2995 9 times, resulting in a remainder of 196.
Use 9 as the next digit of our solution. 
Result so far: 129329.0
Subtracting 2799 from 2995 leaves us with 196.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1960, and continue the process.

On to step 9:
The number 311 fits into 1960 6 times, leaving a remainder of 94.
Put 6 as the next digit of the answer. 
Result so far: 129329.6
If we take 1866 away from 1960, we end up with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Let's proceed to step 10:
The number 311 fits into 940 3 times, leaving a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 129329.63
Deduct 933 from 940 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 11:
The number 311 fits into 70 0 times, leaving a remainder of 70.
Put 0 as the next digit of the answer. 
Result so far: 129329.63
Subtract 0 from 70 to get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Moving on to step 12:
The number 311 fits into 700 2 times, leaving a remainder of 78.
The next digit of our result is 2. 
Result so far: 129329.6302
If we subtract 622 from 700, we get 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

On to step 13:
When dividing 780 by 311, we get 2 with a remainder of 158.
The next digit of our result is 2. 
Result so far: 129329.63022
Subtracting 622 from 780 leaves us with 158.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

The final result is 129329.63022 with a remainder of 0.000158.