\(M=\dfrac{2\sqrt{x}-9-\left(\sqrt{x}+3\right)\left(\sqrt{x}-3\right)+\left(2\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}\)
\(=\dfrac{2\sqrt{x}-9-x+9+2x-3\sqrt{x}-2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}\)
\(=\dfrac{x-\sqrt{x}-2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}=\dfrac{\sqrt{x}+1}{\sqrt{x}-3}\)
Để M nguyên thì \(\sqrt{x}-3+4⋮\sqrt{x}-3\)
=>\(\sqrt{x}-3\in\left\{1;-1;2;-2;4;-4\right\}\)
=>\(\sqrt{x}\in\left\{4;2;5;1;7;-1\right\}\)
Kết hợp ĐKXĐ, ta được:
\(x\in\left\{16;25;1;49\right\}\)