<s>[INST] Determining all the positive integers $n$ such that $n^4+n^3+n^2+n+1$ is a perfect square. I successfully thought of bounding our expression examining consecutive squares that attain values close to it, and this led to the solution I'll post as an answer, which was the one reported. However, before that, I had briefly tried manipulating $$n^4+n^3+n^2+n+1=m^2.$$Since $n=1$ is not a solution, I rewrote this as $$\frac{n^5-1}{n-1}=m^2 \\ n^5-1=nm^2-m^2 \\ m^2-1=n(m^2-n^4) \\ (m-1)(m+1)=n(m-n^2)(m+n^2),$$ but in vain. Does manipulation lead somewhere? Is there a different approach from both of mine?
 [/INST] For all positive $n$ we have $$\require\cancel \left(n^2+\frac{n}{2}\right)^2=\cancel{n^4+n^3}+\frac{n^2}{4}<\cancel{n^4+n^3}+n^2+n+1 \\ \frac{n^2}{4}<n^2+n+1 $$ and on the other hand $$\require\cancel \left(n^2+\frac{n+2}{2}\right)^2=n^4+n^3+2n^2+\frac{n^2+4n+4}{4}>n^4+n^3+n^2+n+1 \\ \cancel{n^4+n^3}+\frac{9}{4}n^2\cancel{+n+1}>\cancel{n^4+n^3}+n^2\cancel{+n+1} \\ \frac{9}{4}n^2>n^2.$$ As a consequence, $n$ cannot be even, and for some odd $n$ we must have $$\left(n^2+\frac{n+1}{2}\right)^2=\cancel{n^4+n^3+n^2}+\frac{n^2+2n+1}{4}=\cancel{n^4+n^3+n^2}+n+1 \\ n^2+2n+1=4n+4 \\ n^2-2n-3=(n-3)(n+1)=0,$$ whence $n=3$. In particular, $$3^4+3^3+3^2+3+1=11^2.$$
</s>