\(A=\left(\dfrac{x+2}{x\sqrt{x}-1}+\dfrac{\sqrt{x}}{x+\sqrt{x}+1}+\dfrac{1}{1-\sqrt{x}}\right):\dfrac{\sqrt{x}-1}{2}\left(đk:x\ge0,x\ne1\right)\)
\(=\dfrac{x+2+\sqrt{x}\left(\sqrt{x}-1\right)-\left(x+\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}.\dfrac{2}{\sqrt{x}-1}\)
\(=\dfrac{x-2\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}.\dfrac{2}{\sqrt{x}-1}\)
\(=\dfrac{\left(\sqrt{x}-1\right)^2.2}{\left(\sqrt{x}-1\right)^2\left(x+\sqrt{x}+1\right)}=\dfrac{2}{x+\sqrt{x}+1}\)
Để A nguyên thì: \(x+\sqrt{x}+1\inƯ\left(2\right)=\left\{-2;-1;1;2\right\}\)
Mà \(x+\sqrt{x}+1=\left(x+\sqrt{x}+\dfrac{1}{4}\right)+\dfrac{3}{4}=\left(\sqrt{x}+\dfrac{1}{2}\right)^2+\dfrac{3}{4}\ge\dfrac{3}{4}>0\)
\(\Rightarrow x+\sqrt{x}+1\in\left\{1;2\right\}\)
+ Với \(x+\sqrt{x}+1=1\)
\(\Leftrightarrow\sqrt[]{x}\left(\sqrt{x}+1\right)=0\)
\(\Leftrightarrow x=0\left(tm\right)\left(do.\sqrt{x}+1\ge1>0\right)\)
+ Với \(x+\sqrt{x}+1=2\)
\(\Leftrightarrow\left(x+\sqrt{x}+\dfrac{1}{4}\right)=\dfrac{5}{4}\)
\(\Leftrightarrow\left(\sqrt{x}+\dfrac{1}{2}\right)^2=\dfrac{5}{4}\)
\(\Leftrightarrow\left[{}\begin{matrix}\sqrt{x}+\dfrac{1}{2}=\dfrac{\sqrt{5}}{2}\\\sqrt{x}+\dfrac{1}{2}=-\dfrac{\sqrt{5}}{2}\end{matrix}\right.\)\(\Leftrightarrow\left[{}\begin{matrix}\sqrt{x}=\dfrac{\sqrt{5}-1}{2}\\\sqrt{x}=-\dfrac{\sqrt{5}+1}{2}\left(VLý\right)\end{matrix}\right.\)
\(\Leftrightarrow x=\dfrac{3-\sqrt{5}}{2}\left(tm\right)\)
Vậy \(S=\left\{1;\dfrac{3-\sqrt{5}}{2}\right\}\)