\(D=\dfrac{x+1}{2x}\Rightarrow2Dx=x+1\Rightarrow x\left(2D-1\right)=1\Rightarrow x=\dfrac{1}{2D-1}\)
Do x nguyên \(\Rightarrow2D-1\) là ước của 1 \(=\left\{-1;1\right\}\)
\(2D-1=-1\Rightarrow2D=0\Rightarrow D=0\Rightarrow x=-1\)
\(2D-1=1\Rightarrow2D=2\Rightarrow D=1\Rightarrow x=1\)
Vậy x=-1 hoặc x=1 thì D nguyên