a: ĐKXĐ: a>=0; b>=0; ab<>0; a<>1\(M=\dfrac{3\sqrt{a}\left(\sqrt{a}-\sqrt{b}\right)-3a+a+\sqrt{ab}+b}{\left(\sqrt{a}-\sqrt{b}\right)\left(a+\sqrt{ab}+b\right)}\cdot\dfrac{2\left(a+\sqrt{ab}+b\right)}{\left(\sqrt{a}-\sqrt{b}\right)\left(a-1\right)}\)
\(=\dfrac{3a-3\sqrt{ab}-3a+a+\sqrt{ab}+b}{\sqrt{a}-\sqrt{b}}\cdot\dfrac{1}{\left(\sqrt{a}-\sqrt{b}\right)\left(a-1\right)}\)
\(=\dfrac{a-2\sqrt{ab}+b}{\left(\sqrt{a}-\sqrt{b}\right)^2}\cdot\dfrac{1}{a-1}=\dfrac{1}{a-1}\)
b: M nguyên khi a-1 thuộc {1;-1}
=>a thuộc {2;0}