The correct option is B 2
foraequationax2+bx+c=0tohaveintegerrootsconditionsarea=1,b∈I,c∈Iandb2−4acisaperfectsquarex2+ax+a+1=0a∈I∴a+1∈Ia2−4(a+1)isperfectsquare∴a2−4(a+1)isperfectsquare∴a2−4a−4=p2a2−4a−4−p2=0(a−2)2−8−p2=0(a−2)2=p2+8∴p2=1(a−2)2=9(a−2)2=32∴a−2=3ora−2=−3a=5ora=−1∴2valuesofa