The solution set of the equation (x+1)2+[x−1]2=(x−1)2+[x+1]2, where [x] and (x) are the greatest integer and least integer function of x, is