Theorem NEM Number of Eigenvalues of a Matrix

Suppose that $\scalarlist{\lambda}{k}$ are the distinct eigenvalues of a square matrix $A$ of size $n$. Then \begin{equation*} \sum_{i=1}^{k}\algmult{A}{\lambda_i}=n \end{equation*}

Proof
(in context)