Let $A \in \mathbb{R}^{n \times n}$, where $n \geq 2$, be a matrix for which $$A^3+A^2+A=0$$ Prove that rank of $A$ is an odd number.
What I've done so far: $A^3+A^2+A=0 \Rightarrow A(A^2+A+I_n)=0$ , then $A$ is the solution of $x(x^2+x+1)=0$ that means that $x_1=0 \;,\;x_2=-\frac{1}{\sqrt{2}}+\frac{i\sqrt{3}}{2}\;,\;x_3=-\frac{1}{\sqrt{2}}-\frac{i\sqrt{3}}{2}$ are eigenvalues of $A$ and so $A$ is not invertible , also $A\neq 0$ and lastly $A$ must be diagonalizable since it has 3 different eigenvalues.
Any help on how to continue ?
Thank you in advance !