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

Step 1:
18 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 18

Advancing to step 2:
18 can be fit into 33 1 times, resulting in a remainder of 15.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 18 from 33, we get 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 18

Going ahead to step 3:
158 divided by 18 is 8 with a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
If we take 144 away from 158, we end up with 14.
Fetch the next digit (7) from the dividend, attach it to 14 and continue: 147 / 18

Step 4:
147 divided by 18 is 8 with a remainder of 3.
Write down 8 as next digit of the result. 
Result so far: 188.0
Subtracting 144 from 147 leaves us with 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 18

Moving on to step 5:
If we divide 36 by 18, we get 2 and a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 1882.0
Deduct 36 from 36 and we're left with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 18

Moving on to step 6:
18 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 18820.0
The remainder is 5 after subtracting 0 from 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
18 goes into 50 2 times with a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 18820.2
The remainder is 14 after subtracting 36 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 8:
The number 18 fits into 140 7 times, leaving a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 18820.27
Deduct 126 from 140 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
If we divide 140 by 18, we get 7 and a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 18820.277
Subtracting 126 from 140 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

The final result is 18820.277 with a remainder of 0.0014.