I know that every idempotent matrix is diagonalizable. Thus, I can search diagonal matrices for all the idempotent elements. In this case, $(n,0), (n,1),..,(n,n)=2^n$ diagonal matrix can be obtained. It means there are $2^n$ idempotent elements in $M_n(F)$. But, I need to show that just $1$ can be on the diagonal. I can not understand why just $1$?
Could someone help me out please?
An idempotent matrix represent a projection onto a certain subspace, hence the only eigenvalues that can appear are 0 and 1. A diagonal matrix that represent a projection can have only ones as nonzero elements.