The assertion is as follows:"If $\lambda$ is an eigenvalue of a matrix A for which $A = A^2$ then $\lambda = 0 $ or $ \lambda = 1$. Prove if true or use a counter example.
My intuition is to first find a matrix A that satisfies the constraint: $$ A = AA \\ A^{-1}A = A^{-1}AA \\ I = A $$
I solved for the eigenvalues and found that $\lambda = 1$, however I am not sure how to end off the proof by showing that $\lambda = 0$ is also an eigenvalue. Any help would be appreciated.