Đặt \(n^2+n+17=a^2\left(a\inℕ^∗\right)\)
\(\Leftrightarrow\left(2n\right)^2+4n+68=\left(2a\right)^2\)
\(\Leftrightarrow\left(2n+1\right)^2+67=\left(2a\right)^2\)
\(\Leftrightarrow\left(2a\right)^2-\left(2n+1\right)^2=67\)
\(\Leftrightarrow\left(2a-2n-1\right)\left(2a+2n+1\right)=67\)
Ta thấy : \(a,n\inℕ^∗\) \(\Rightarrow\hept{\begin{cases}2a-2n-1,2a+2n+1\inℕ^∗\\2a+2n+1>2a-2n-1\end{cases}}\)
Do đó ta xét TH sau :
\(\hept{\begin{cases}2a-2n-1=1\\2a+2n+1=67\end{cases}}\) \(\Leftrightarrow\hept{\begin{cases}n=32\\a=33\end{cases}}\) ( thỏa mãn )
Vậy : \(n=32\) thỏa mãn đề.