\(a^2+b^2=5\Rightarrow b^2\le5\)
\(\Rightarrow b^2=1;4\Rightarrow b=-2;-1;1;2\)
Với \(b=-2\) thì \(a^2+\left(-2\right)^2=5\Leftrightarrow a^2+4=5\Rightarrow a^2=1\Rightarrow a=-1;1\)
Với \(b=-1\) thì \(a^2+\left(-1\right)^2=5\Leftrightarrow a^2+1=5\Rightarrow a^2=4\Rightarrow a=-2;2\)
Với \(b=1\) thì \(a^2+1^2=5\Rightarrow a^2=4\Rightarrow a=-2;2\)
Với \(b=2\) thì \(a^2+2^2=5\Leftrightarrow a^2=1\Rightarrow a=-1;1\)
=> ( a;b ) = { (-1;-2) ; (1;-2) ; (-2;-1) ; (2;-1) ; (-2;1) ; (2;1); (-1;2) ; (1;2) }
Vậy có 8 cặp a ; b thỏa mãn đề bài