I saw a question my number theory notes:
for which values of $n$ , $1+n+n^{2}+n^{3}+n^{4}$ is a perfect square where $"n"$ is non negative integer?
It was solved my professor using inequalities,but i think that his method is too long.Because of that, i did not write it here.
I tried to solve it using modular arithmetic but i could not do it.
I am looking for hints or solutions to solve it using modular artihmatic.
Note= I tried to use $(mod4)$ because for all $x^{2} \equiv \pm 1 (mod4)$ but i stuck in it.