We're dividing 585789 by 18 
Our goal is to divide 585789 by 18.

On to step 1:
5 divided by 18 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 18

Step 2:
58 divided by 18 is 3 with a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 54 from 58 leaves us with 4.
Append the next digit (5) from the dividend to 4 and continue with: 45 / 18

Going ahead to step 3:
If we divide 45 by 18, we get 2 and a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 32.0
If we take 36 away from 45, we end up with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 18

Step 4:
18 goes into 97 5 times with a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 325.0
If we take 90 away from 97, we end up with 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 18

Advancing to step 5:
The number 18 fits into 78 4 times, leaving a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 3254.0
If we take 72 away from 78, we end up with 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 18

On to step 6:
18 goes into 69 3 times with a remainder of 15.
Use 3 as the next digit of our solution. 
Result so far: 32543.0
Deduct 54 from 69 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 7:
150 divided by 18 is 8 with a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 32543.8
The remainder is 6 after subtracting 144 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
18 can be fit into 60 3 times, resulting in a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 32543.83
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 9:
60 divided by 18 is 3 with a remainder of 6.
The next digit of our result is 3. 
Result so far: 32543.833
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.

The quotient of the division is 32543.833, and the remainder is 0.0006.