40508015 divided by 22 
We want to divide 40508015 by 22.

Advancing to step 1:
If we divide 4 by 22, we get 0 and a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 22

Moving on to step 2:
When dividing 40 by 22, we get 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 22 from 40 to get 18.
Include the next digit (5) from the dividend after 18, then repeat: 185 / 22

On to step 3:
22 can be fit into 185 8 times, resulting in a remainder of 9.
The next digit of our result is 8. 
Result so far: 18.0
If we subtract 176 from 185, we get 9.
Grab the next digit (0) from the dividend, add it to 9, then carry on: 90 / 22

Let's proceed to step 4:
22 can be fit into 90 4 times, resulting in a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 184.0
Deduct 88 from 90 and we're left with 2.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 22

Let's proceed to step 5:
If we divide 28 by 22, we get 1 and a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 1841.0
Deduct 22 from 28 and we're left with 6.
Grab the next digit (0) from the dividend, add it to 6, then carry on: 60 / 22

Moving on to step 6:
60 divided by 22 is 2 with a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 18412.0
If we take 44 away from 60, we end up with 16.
Append the next digit (1) from the dividend to 16 and continue with: 161 / 22

Moving on to step 7:
The number 22 fits into 161 7 times, leaving a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 184127.0
The remainder is 7 after subtracting 154 from 161.
Bring next digit (5) of the dividend behind the 7 and repeat the process: 75 / 22

Moving on to step 8:
22 goes into 75 3 times with a remainder of 9.
The next digit of our result is 3. 
Result so far: 1841273.0
Subtracting 66 from 75 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 9:
22 goes into 90 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 1841273.4
Subtracting 88 from 90 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 10:
22 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 1841273.4
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
The number 22 fits into 200 9 times, leaving a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 1841273.409
If we subtract 198 from 200, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 12:
22 goes into 20 0 times with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 1841273.409
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 13:
When dividing 200 by 22, we get 9 with a remainder of 2.
The next digit of our result is 9. 
Result so far: 1841273.40909
Subtracting 198 from 200 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 14:
22 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 1841273.40909
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 15:
When dividing 200 by 22, we get 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 1841273.4090909
If we take 198 away from 200, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 16:
The number 22 fits into 20 0 times, leaving a remainder of 20.
The next digit of our result is 0. 
Result so far: 1841273.4090909
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

After the division, we end up with 1841273.4090909 and a remainder of 2e-08.