\(A=a^2+a+3=\dfrac{\left(2a+1\right)^2+11}{4}\)
\(B=\sqrt{A}=\dfrac{1}{2}\sqrt{\left(2a+1\right)^2+11}\)
để B có giá trị huu tỷ \(C=\left(2a+1\right)^2+11=k^2\Rightarrow k^2-\left(2a+1\right)^2=11\)
\(\Rightarrow\left|2a+1\right|=5\Rightarrow\left[\begin{matrix}a=2\\a=-3\end{matrix}\right.\)