M=\frac{\sqrt a-2}{\sqrt a+2}=\frac{\sqrt a+2-4}{\sqrt a+2}=1-\frac4{\sqrt a+2}
Để M nhận nghiệm nguyên thì \frac4{\sqrt a+2} \in Z
\Rightarrow \sqrt a+2 là ước của 4
Mà \sqrt a+2 \geq 2 \forall a \geq 0
\Rightarrow \sqrt a+2 ={2;4}
Với \sqrt a+2=2 \Rightarrow a=0
Với \sqrt a+2=4 \Rightarrow a= 4
Nhận cả hai giá trị \Rightarrow S_a={0;4}