1: ĐKXĐ: a>=0; a<>1
Đặt \(A=\left(\dfrac{a+2\sqrt{a}}{\sqrt{a}+2}-1\right):\left(\dfrac{a-\sqrt{a}}{\sqrt{a}-1}+1\right)\)
\(=\left(\dfrac{\sqrt{a}\left(\sqrt{a}+2\right)}{\sqrt{a}+2}-1\right):\left(\dfrac{\sqrt{a}\left(\sqrt{a}-1\right)}{\sqrt{a}-1}+1\right)\)
\(=\dfrac{\left(\sqrt{a}-1\right)}{\sqrt{a}+1}\)
2: Để A là số nguyên thì \(\sqrt{a}-1⋮\sqrt{a}+1\)
=>\(\sqrt{a}+1-2⋮\sqrt{a}+1\)
=>\(-2⋮\sqrt{a}+1\)
=>\(\sqrt{a}+1\in\left\{1;-1;2;-2\right\}\)
=>\(\sqrt{a}\in\left\{0;-2;1;-3\right\}\)
=>\(\sqrt{a}\in\left\{0;1\right\}\)
=>\(a\in\left\{0;1\right\}\)
Kết hợp ĐKXĐ, ta được: a=0