Question: Let $A$ be an $n×n$ complex matrix with $n$ distinct eigenvalues. Let $V$ be the set of all $n×n$ complex matrices $B$ that commute with $A$. Prove that V is a vector space and find its dimension (Justify your answer).
My Answer: I know how to show that V is a vector space, but I don't know how to find its dimension. I tried showing that if v is an eigenvector corresponding to some eigenvalue, so is Bv, and got that for all B, Bv = kv for some scalar v. But I'm not sure if this helps.