[tex]\displaystyle\\n = 2016^2+2016+2017=~~~\text{Factor comun 2016 din primii 2 termeni.}\\\\=2016(2016+1)+2017=\\\\=2016\times2017+2017=~~~\text{Factor comun 2017.}\\\\=2017(2016+1)=2017\times2017=2017^2=\text{patrat perfect}\\\\2017^2=4068289\\\\\implies~~4068289=\text{patrat perfect}[/tex]