Number of values of n∈Z for which n2+n+2 is a perfect square is
Open in App
Solution
n2+n+2=m2,m∈W n2+n+(2−m2)=0 D=1−4(2−m2)=p2,p∈W 4m2−p2=7 (2m−p)(2m+p)=7 2m−p=12m+p=7–––––––––––––––4m=8⇒m=2
After putting m=2 in the equation we get, n2+n−2=0 (n+2)(n−1)=0 n=1,−2