Lời giải:
a.
\(A=\frac{(x\sqrt{x}-4x)-(\sqrt{x}-4)}{2(\sqrt{x}-4)(\sqrt{x}-2)(\sqrt{x}-1)}\)
ĐKXĐ: \(\left\{\begin{matrix} x\geq 0\\ \sqrt{x}-4\neq 0\\ \sqrt{x}-2\neq 0\\ \sqrt{x}-1\neq 0\end{matrix}\right.\Leftrightarrow \left\{\begin{matrix} x\geq 0\\ x\neq 16\\ x\neq 4\\ x\neq 1\end{matrix}\right.\)
\(A=\frac{x(\sqrt{x}-4)-(\sqrt{x}-4)}{2(\sqrt{x}-4)(\sqrt{2}-2)(\sqrt{x}-1)}=\frac{(x-1)(\sqrt{x}-4)}{2(\sqrt{x}-4)(\sqrt{x}-2)(\sqrt{x}-1)}\)
\(=\frac{(\sqrt{x}-1)(\sqrt{x}+1)(\sqrt{x}-4)}{2(\sqrt{x}-4)(\sqrt{x}-2)(\sqrt{x}-1)}=\frac{\sqrt{x}+1}{2(\sqrt{x}-2)}\)
b.
Với $x$ nguyên, để $A\in\mathbb{Z}$ thì $\sqrt{x}+1\vdots 2(\sqrt{x}-2)}$
$\Rightarrow \sqrt{x}+1\vdots \sqrt{x}-2$
$\Leftrightarrow \sqrt{x}-2+3\vdots \sqrt{x}-2$
$\Leftrightarrow 3\vdots \sqrt{x}-2$
$\Rightarrow \sqrt{x}-2\in\left\{\pm 1;\pm 3\right\}$
$\Rightarrow x\in\left\{1;9;25\right\}$
Thử lại thấy đều thỏa mãn.