Let's divide 512358 by 18
We want to divide 512358 by 18.

Step 1:
When dividing 5 by 18, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 18

On to step 2:
51 divided by 18 is 2 with a remainder of 15.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 36 from 51 leaves us with 15.
Grab the next digit (2) from the dividend, add it to 15, then carry on: 152 / 18

Going ahead to step 3:
The number 18 fits into 152 8 times, leaving a remainder of 8.
The next digit of our result is 8. 
Result so far: 28.0
Subtracting 144 from 152 leaves us with 8.
Take the next digit (3) from the dividend and append it to 8, then repeat: 83 / 18

Moving on to step 4:
If we divide 83 by 18, we get 4 and a remainder of 11.
Use 4 as the next digit of our solution. 
Result so far: 284.0
Subtract 72 from 83 to get 11.
Grab the next digit (5) from the dividend, add it to 11, then carry on: 115 / 18

Advancing to step 5:
When dividing 115 by 18, we get 6 with a remainder of 7.
Record the quotient 6 as the next digit in the result. 
Result so far: 2846.0
The remainder is 7 after subtracting 108 from 115.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 18

Going ahead to step 6:
78 divided by 18 is 4 with a remainder of 6.
The next digit of our result is 4. 
Result so far: 28464.0
Subtracting 72 from 78 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
18 can be fit into 60 3 times, resulting in a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 28464.3
Subtracting 54 from 60 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 8:
18 goes into 60 3 times with a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 28464.33
If we take 54 away from 60, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The quotient of the division is 28464.33, and the remainder is 0.006.