402047 divided by 18 
We want to divide 402047 by 18.

Moving on to step 1:
18 can be fit into 4 0 times, resulting in a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 18

Step 2:
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: 2.0
If we take 36 away from 40, we end up with 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 18

Moving on to step 3:
18 can be fit into 42 2 times, resulting in a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
Subtracting 36 from 42 leaves us with 6.
Append the next digit (0) from the dividend to 6 and continue with: 60 / 18

Step 4:
The number 18 fits into 60 3 times, leaving a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 223.0
If we subtract 54 from 60, we get 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 18

Advancing to step 5:
64 divided by 18 is 3 with a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 2233.0
If we subtract 54 from 64, we get 10.
Grab the next digit (7) from the dividend, add it to 10, then carry on: 107 / 18

Let's proceed to step 6:
When dividing 107 by 18, we get 5 with a remainder of 17.
Put 5 as the next digit of the answer. 
Result so far: 22335.0
The remainder is 17 after subtracting 90 from 107.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 7:
The number 18 fits into 170 9 times, leaving a remainder of 8.
Use 9 as the next digit of our solution. 
Result so far: 22335.9
The remainder is 8 after subtracting 162 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 8:
If we divide 80 by 18, we get 4 and a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 22335.94
If we subtract 72 from 80, 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 9:
The number 18 fits into 80 4 times, leaving a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 22335.944
If we subtract 72 from 80, 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.

The quotient of the division is 22335.944, and the remainder is 0.0008.