, so for some integer k that will cancel on top and bottom. Substitute , so , giving the quadratic . The determinant is , so the first value for k that makes D a perfect square will give you your answer!

Consider the distance D between the points . Let . To minimize , find its derivative and set to zero. You won't get an integer value, and need a calculator.

Hope this helps!