a) Để A có giá trị nguyên thì \(\dfrac{\sqrt{x}+2}{\sqrt{x}-1}\) có giá trị nguyên
\(\Rightarrow\left(\sqrt{x}+2\right)⋮\left(\sqrt{x}-1\right)\)
Mà \(\left(\sqrt{x}-1\right)⋮\left(\sqrt{x}-1\right)\)
\(\Rightarrow\left(\sqrt{x}+2-\sqrt{x}+1\right)⋮\left(\sqrt{x}-1\right)\)\(\Leftrightarrow3⋮\left(\sqrt{x}-1\right)\)
\(\Rightarrow\left(\sqrt{x}-1\right)\inƯ_{\left(3\right)}=\left\{-3;-1;1;3\right\}\)
Ta có bảng sau:
| \(\sqrt{x}-1\) | -3 | -1 | 1 | 3 |
| \(\sqrt{x}\) | -2(loại) | 0 | 2 | 4 |
| \(x\) | 0 | 4 | 16 |
Vậy để A có giá trị nguyên thì \(x\in\left\{0;4;16\right\}\)
b) Để B có giá trị nguyên thì \(\left(2\sqrt{x}-3\right)⋮\left(\sqrt{x}+2\right)\)
Mà \(\left(\sqrt{x}+2\right)⋮\left(\sqrt{x}+2\right)\) \(\Leftrightarrow2.\left(\sqrt{x}+2\right)⋮\left(\sqrt{x}+2\right)\) \(\Leftrightarrow\left(2\sqrt{x}+4\right)⋮\left(\sqrt{x}+2\right)\)
\(\Rightarrow\left(2\sqrt{x}+4-2\sqrt{x}+3\right)⋮\left(\sqrt{x}+2\right)\) \(\Leftrightarrow7⋮\left(\sqrt{x}+2\right)\)
\(\Rightarrow\left(\sqrt{x}+2\right)\inƯ_{\left(7\right)}=\left\{-7;-1;1;7\right\}\)
Ta có bảng sau:
| \(\sqrt{x}+2\) | -7 | -1 | 1 | 7 |
| \(\sqrt{x}\) | -9(loại) | -3(loại) | -1(loại) | 5 |
| \(x\) | 25 |
Vậy để B có giá trị nguyên thì \(x=25\)