Moderate# When is a Square Matrix Unit Idempotent?

LINALG-ECCMVX

Let $E$ be a square matrix with all but one entry equal to $0$. Suppose the nonzero entry is $b$ and that it is found in row $i$, column $j$.

In which of the following cases will $E$ be an idempotent matrix?