We're dividing 405742 by 18 
Let's see how many times 18 fits into 405742.

Advancing to step 1:
If we divide 4 by 18, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 18

Let's proceed to step 2:
18 goes into 40 2 times with a remainder of 4.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 36 from 40, we get 4.
Take the next digit (5) from the dividend and append it to 4, then repeat: 45 / 18

Going ahead to step 3:
18 goes into 45 2 times with a remainder of 9.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
Subtracting 36 from 45 leaves us with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 18

Going ahead to step 4:
18 goes into 97 5 times with a remainder of 7.
Use 5 as the next digit of our solution. 
Result so far: 225.0
If we subtract 90 from 97, we get 7.
Append the next digit (4) from the dividend to 7 and continue with: 74 / 18

Step 5:
The number 18 fits into 74 4 times, leaving a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 2254.0
Subtracting 72 from 74 leaves us with 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 18

On to step 6:
18 can be fit into 22 1 times, resulting in a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 22541.0
If we take 18 away from 22, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
40 divided by 18 is 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 22541.2
Deduct 36 from 40 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
40 divided by 18 is 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 22541.22
If we subtract 36 from 40, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

In conclusion, the division gives 22541.22 with a balance of 0.004.