Suppose that A is an n x n matrix with the property that A^2=A.

a) I have to show that if lambda is an eigenvalue of A, then lambda= 1 or 0.

b) Also I have to prove that A is diagonalizable.

I'm not sure how the property helps me find the eigenvalues of the matrix A.