Question 39Find all integer solutions to the equation $$ (1 + (x - 1)^2)^{x^2+1} + (4 - (x - 2)^2)^{(x-1)^2} = 2. $$