Let's divide 400742 by 18
We want to figure out the number of times 400742 can be divided by 18.

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

Advancing to step 2:
If we divide 40 by 18, we get 2 and a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 36 away from 40, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 18

On to step 3:
The number 18 fits into 40 2 times, leaving a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we take 36 away from 40, we end up with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 18

Moving on to step 4:
If we divide 47 by 18, we get 2 and a remainder of 11.
Use 2 as the next digit of our solution. 
Result so far: 222.0
Subtract 36 from 47 to get 11.
Fetch the next digit (4) from the dividend, attach it to 11 and continue: 114 / 18

Going ahead to step 5:
18 can be fit into 114 6 times, resulting in a remainder of 6.
The next digit of our result is 6. 
Result so far: 2226.0
If we subtract 108 from 114, we get 6.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 18

On to step 6:
When dividing 62 by 18, we get 3 with a remainder of 8.
Put 3 as the next digit of the answer. 
Result so far: 22263.0
If we subtract 54 from 62, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 7:
18 can be fit into 80 4 times, resulting in a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 22263.4
Subtracting 72 from 80 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 8:
If we divide 80 by 18, we get 4 and a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 22263.44
The remainder is 8 after subtracting 72 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 22263.44, and the remainder is 0.008.