40779 divided by 22 
We're looking to find how many times 22 goes into 40779.

Step 1:
The number 22 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 22

On to step 2:
22 goes into 40 1 times with a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 22 from 40 to get 18.
Include the next digit (7) from the dividend after 18, then repeat: 187 / 22

Moving on to step 3:
22 goes into 187 8 times with a remainder of 11.
Write down 8 as next digit of the result. 
Result so far: 18.0
If we subtract 176 from 187, we get 11.
Take the next digit (7) from the dividend and append it to 11, then repeat: 117 / 22

On to step 4:
The number 22 fits into 117 5 times, leaving a remainder of 7.
Put 5 as the next digit of the answer. 
Result so far: 185.0
Subtracting 110 from 117 leaves us with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 22

Advancing to step 5:
If we divide 79 by 22, we get 3 and a remainder of 13.
Put 3 as the next digit of the answer. 
Result so far: 1853.0
Subtracting 66 from 79 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 6:
22 can be fit into 130 5 times, resulting in a remainder of 20.
Record the quotient 5 as the next digit in the result. 
Result so far: 1853.5
Deduct 110 from 130 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 7:
22 goes into 200 9 times with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 1853.59
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.

Going ahead to step 8:
20 divided by 22 is 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 1853.59
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.

Let's proceed to step 9:
If we divide 200 by 22, we get 9 and a remainder of 2.
The next digit of our result is 9. 
Result so far: 1853.5909
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.

On to step 10:
22 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 1853.5909
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.

Going ahead to step 11:
When dividing 200 by 22, we get 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 1853.590909
Deduct 198 from 200 and we're left 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 12:
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: 1853.590909
Subtract 0 from 20 to 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.

Step 13:
22 goes into 200 9 times with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 1853.59090909
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.

In conclusion, the division gives 1853.59090909 with a balance of 2e-09.