Prove or disprove: There exists a real $n \times n$ matrix $A$ with
$$ A^2+2\cdot A+5\cdot I_n = 0 $$ if and only if n is even.
I could not find a counterexample for an odd $n$. Therefore, I suspect that the statement is true, but I have not yet found a solution.
If $n$ is odd, then $A$ has a a real eigenvalue $\lambda$. But then $\lambda^2+2\lambda+5=0$ and no such real number exists.
If $n=2$, consider$$A=\begin{bmatrix}-1&-2\\2&-1\end{bmatrix}.$$It will work because its eigenvalues are $-1\pm2i$, which are the roots of $\lambda^2+2\lambda+5$.
Can you generalize this for $n$ even and greater than $2$?