The correct option is A (−5,−4]∪(2,3]
If x=k, where k is an integer.
The equation is k2+(k+1)2=25
⇒k2+k−12=0
k=3,−4⇒x=3,−4.
If x=k+f , where k is an integer 0<f<1,
The equation is
(k+1)2+(k+2)2=25
k2+3k−10=0
k=2,−5.
∴ x=2+f,x=−5+f
x=−5+f and x=−4 ⇒x∈(−5,−4]
x=2+f and x=3 ⇒x∈(2,3]
∴ solution set is (−5,−4]∪(2,3].