We're dividing 865989 by 18 
We want to figure out the number of times 865989 can be divided by 18.

Advancing to step 1:
8 divided by 18 is 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Append the next digit (6) from the dividend to 8 and continue with: 86 / 18

Going ahead to step 2:
18 can be fit into 86 4 times, resulting in a remainder of 14.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 72 from 86 and we're left with 14.
Grab the next digit (5) from the dividend, add it to 14, then carry on: 145 / 18

Advancing to step 3:
The number 18 fits into 145 8 times, leaving a remainder of 1.
Record the quotient 8 as the next digit in the result. 
Result so far: 48.0
If we subtract 144 from 145, we get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 18

Step 4:
If we divide 19 by 18, we get 1 and a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 481.0
If we take 18 away from 19, we end up with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 18

Moving on to step 5:
If we divide 18 by 18, we get 1 and a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 4811.0
Deduct 18 from 18 and we're left with 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 18

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

Moving on to step 7:
18 goes into 90 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 48110.5
If we take 90 away from 90, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
18 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 48110.5
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 9:
18 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 48110.5
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 48110.5, and the remainder is 0.0.