TITLE: Let $A$ be real symmetric $n\times n$ matrix whose only eigenvalues are 0 and 1. Pick out the true statements.
QUESTION [5 upvotes]: Let $A$ be real symmetric $n\times n$ matrix whose only eigenvalues are $0$ and $1$. Let the dimension of the null space of $A-I$ be $m$. Pick out the true statements.


The characteristic  polynomial of $A$ is $(\lambda-1)^m(\lambda)^{m-n}$.
$A^k = A^{k+1}$
The rank of $A$ is $m$.


This is what I did: I found geometric multiplicity corresponding to eigenvalue value $0$ to be $n-m$(using symmetric matrix is diagonalizable ) while geometric multiplicity of  eigenvalue value 1 is $m$(that is given) .so the characteristic polynomial of $A$ should be $(\lambda-1)^m(\lambda)^{n-m}$. While I am not sure about other two statements. Any kind of help is highly appreciated. Thanks.

REPLY [3 votes]: As you noticed, since $A$ is a real symmetric matrix, it is diagonalizable, and the properties satisfied (or not) by $A$ will be satisfied also by $D$, where $D$ is a diagonal matrix which consists of the eigenvalues of $A$. 
Indeed, $\dim\ker(A-I)$ and characteristic polynomial are invariant up a change of basis. To see that, write $A=P^{-1}DP$, and $\ker(A-I)=\ker(D-I)$, as it can be seen by a double inclusion. For the characteristic polynomial, use determinant for example. 

The first is true if we switch $m$ and $n$ in the power of $\lambda$, namely $p_A(\lambda)=(\lambda-1)^m\lambda^{n-m}$, otherwise the degree would be $2m-n$, which is not $m$, except in the case $m=n$. 
The second is false if $k=0$ unless $A=I$, but true for $k\geq 1$.
The third is also true. Indeed, we look at the rank of $A$ is the same as the rank of $D$, and the rank of a diagonal matrix is easy to determine.

REPLY [2 votes]: To answer 2 and 3, consider diagonalizing $A$. And note that it is enough to show 2 for $k=1$.