x(y+1)=k^2 and y(x+1)=m^2 over the integers