How do I find an integer $a$ such that that :
$$ (x-a)(x-12)+2$$
can be factorized as $(x+b)(x+c)$ where $b$ and $c$ are integers too.
I have tried expanding the equation and taking the determinant as $k^2$ . But I can't proceed any further from that
The equation $$x^2-(a+12)x+12a+2=0$$ has integer roots.
For which we need that there is natural $k$ for which $$(a+12)^2-48a-8=k^2$$ or $$(a-12)^2-8=k^2$$ or $$(a-12-k)(a-12+k)=8$$ and solve a number of systems.
I got $a=9$ or $a=15$.