I need to find integer x with which function's y gets lowest integer values $$f(x)=\frac{x^2-x-17}{x-2}$$
I tried to find derivative, but it never equals 0. Other steps was to change expression $$f(x)=\frac{x^2-x-17}{x-2}=1+\frac{(x-5)(x+3)}{x-2}=x-2+\frac{3(x-7)}{x-2}$$ But didn't notice any solutions