Let's divide 542335 by 18
We're looking to find how many times 18 goes into 542335.

Going ahead to step 1:
18 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 18

Going ahead to step 2:
18 can be fit into 54 3 times, resulting in a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtract 54 from 54 to get 0.
Append the next digit (2) from the dividend to 0 and continue with: 2 / 18

Let's proceed to step 3:
18 can be fit into 2 0 times, resulting in a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 30.0
Subtract 0 from 2 to get 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 18

Moving on to step 4:
18 can be fit into 23 1 times, resulting in a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 301.0
Subtracting 18 from 23 leaves us with 5.
Bring next digit (3) of the dividend behind the 5 and repeat the process: 53 / 18

On to step 5:
If we divide 53 by 18, we get 2 and a remainder of 17.
Put 2 as the next digit of the answer. 
Result so far: 3012.0
Subtract 36 from 53 to get 17.
Take the next digit (5) from the dividend and append it to 17, then repeat: 175 / 18

Let's proceed to step 6:
175 divided by 18 is 9 with a remainder of 13.
The next digit of our result is 9. 
Result so far: 30129.0
If we subtract 162 from 175, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Advancing to step 7:
130 divided by 18 is 7 with a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 30129.7
Subtracting 126 from 130 leaves us 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 8:
18 goes into 40 2 times with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 30129.72
If we take 36 away from 40, 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.

Step 9:
When dividing 40 by 18, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 30129.722
If we take 36 away from 40, 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.

The quotient of the division is 30129.722, and the remainder is 0.0004.