Để B có giá trị nguyên thì \(\sqrt{x}-1\) phải là ước của 5:
=> \(\sqrt{x}-1=1\Rightarrow\sqrt{x}=1+1=2\Rightarrow x=4\)
=> \(\sqrt{x}-1=-1\Rightarrow\sqrt{x}=-1+1=0\Rightarrow x=0\)
=> \(\sqrt{x}-1=5\Rightarrow\sqrt{x}=5+1=6\Rightarrow x=36\)
=> \(\sqrt{x}-1=-5\Rightarrow\sqrt{x}=-5+1=-4\) => x ko tồn tại
Vậy có các giá trị x thoả mãn là: x = 4; x = 0; x = 36