Given $xy-k(x+y)=0$ where $k\geq 0\space where\space x,y\in \mathbb{Z} $
I know this is a diophantine equation which I have read about earlier.
My attempt :
$(x-k)\cdot(y-k)=k^2$
$\implies \space (x,y) \in {all \space factors \space of \space k^2}$
I am having some doubt about this approach but this proved to be right in $xy-6(x+y)=0$
I know this is a very silly and easy question but please do care to throw some light.