a: \(A=\left(\dfrac{1}{\sqrt{x}+1}-\dfrac{2\sqrt{x}-2}{\left(x-1\right)\left(\sqrt{x}+1\right)}\right):\dfrac{\sqrt{x}+1-x}{x-1}\)
\(=\dfrac{x-1-2\sqrt{x}+2}{\left(x-1\right)\left(\sqrt{x}+1\right)}\cdot\dfrac{x-1}{-x+\sqrt{x}+1}\)
\(=\dfrac{\left(\sqrt{x}-1\right)^2}{\left(\sqrt{x}+1\right)\left(-x+\sqrt{x}+1\right)}\)
b: Để A là số nguyên thì \(\left(\sqrt{x}-1\right)^2⋮\left(\sqrt{x}+1\right)\left(-x+\sqrt{x}+1\right)\)
=>x=0