a) \(P=\dfrac{x-1+4\left(\sqrt{x}+1\right)+1}{x-1}.\dfrac{x-1}{x+2\sqrt{x}}\)
\(=\dfrac{x+4\sqrt{x}+4}{x+2\sqrt{x}}=\dfrac{\left(\sqrt{x}+2\right)^2}{\sqrt{x}\left(\sqrt{x}+2\right)}=\dfrac{\sqrt{x}+2}{\sqrt{x}}\)
b) \(P=\dfrac{\sqrt{x}+2}{\sqrt{x}}=1+\dfrac{2}{\sqrt{x}}\in Z\)
Do \(\sqrt{x}>0\)
\(\Rightarrow\sqrt{x}\inƯ\left(2\right)=\left\{1;2\right\}\)
\(\Rightarrow x\in\left\{1;4\right\}\)