Cho biểu thức:
\(P=\left(\dfrac{3\sqrt{a}}{a+\sqrt{ab}+b}-\dfrac{3a}{a\sqrt{a}-b\sqrt{b}}+\dfrac{1}{\sqrt{a}-\sqrt{b}}\right):\left(\dfrac{\left(a-1\right)\left(\sqrt{a}-\sqrt{b}\right)}{2a+2\sqrt{ab}+2b}\right)\)
a) Rút gọn P
b) Tìm những giá trị nguyên của a để P có giá trị nguyên