$x^2+1=0$ in $\mathbb{Z}_7$
By trying each number, I see that there is no solution, is this correct?
And could you help me with a more direct solution, since this method is not going to work for $\mathbb{Z}_p$ when $p$ is a large prime number .
Thank you very much!
It is a standard theorem proved early in the study of quadratic congruences that the congruence $x^2+1\equiv 0\pmod{p}$ has a solution if the prime $p$ is of the form $4k+1$, and has no solution if $p$ is of the form $4k+3$.