a)\(\left(3x^2+x-2016\right)^2+4\left(x^2+506x-2017\right)^2=4\left(3x^2+x-2016\right)\cdot\left(x^2+506x-2017\right)\)
\(\Leftrightarrow\left(3x^2+x-2016\right)^2-4\left(3x^2+x-2016\right)\left(x^2+506x-2017\right)+4\left(x^2+506x-2017\right)^2=0\)
\(\Leftrightarrow\left(3x^2+x-2016-2x^2-1012x+4034\right)^2=0\)
\(\Leftrightarrow x^2-1011x+2018=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=2\\x=1009\end{matrix}\right.\)