A square matrix $A$ is called idempotent if $A^2 = A$.
(a) Suppose $A$ is an $n × n$ idempotent matrix and let $I$ be the $n × n$ identity matrix. Prove that the matrix $I −A$ is an idempotent matrix.
(b) Assume that $A$ is an $n×n$ non zero idempotent matrix. Then determine all integers $k$ such that the matrix $I − kA$ is idempotent.
I need help. I didn't know what to do... All I know is that I need to show that $(I−A)^2=(I−A)$. I don't have any clue on how I should proceed. Thanks in advance