We divide 400787 by 22
We're looking to find how many times 22 goes into 400787.

Let's proceed to step 1:
22 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 22

Going ahead to step 2:
The number 22 fits into 40 1 times, leaving 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.
Take the next digit (0) from the dividend and append it to 18, then repeat: 180 / 22

Moving on to step 3:
When dividing 180 by 22, we get 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 18.0
Deduct 176 from 180 and we're left with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 22

Moving on to step 4:
22 goes into 47 2 times with a remainder of 3.
Use 2 as the next digit of our solution. 
Result so far: 182.0
If we take 44 away from 47, we end up with 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 22

Step 5:
22 can be fit into 38 1 times, resulting in a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 1821.0
Subtracting 22 from 38 leaves us with 16.
Fetch the next digit (7) from the dividend, attach it to 16 and continue: 167 / 22

Going ahead to step 6:
When dividing 167 by 22, we get 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 18217.0
The remainder is 13 after subtracting 154 from 167.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 7:
22 goes into 130 5 times with a remainder of 20.
The number 5 becomes the next digit in our result. 
Result so far: 18217.5
Subtract 110 from 130 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.

Going ahead to step 8:
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: 18217.59
Subtract 198 from 200 to 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 9:
The number 22 fits into 20 0 times, leaving a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 18217.59
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.

Advancing to step 10:
When dividing 200 by 22, we get 9 with a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 18217.5909
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.

Let's proceed to step 11:
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: 18217.5909
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.

Advancing to step 12:
22 can be fit into 200 9 times, resulting in a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 18217.590909
Subtract 198 from 200 to 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.

Moving on to step 13:
20 divided by 22 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 18217.590909
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.

Advancing to step 14:
When dividing 200 by 22, we get 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 18217.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 18217.59090909 with a balance of 2e-09.