Let $A$ be a $55\times 55$ diagonal matrix with characteristic polynomial $(x-c_1)(x-c_2)^2(x-c_3)^3,\ldots ,(x-c_{10})^{10}$, where $c_1,c_2,\ldots ,c_{10}$ are all distinct. Let $V$ be the vector space of all $55\times 55$ matrices $B$ such that $AB=BA$. What is the dimension of $V$.
My Approach: Here the characteristic space associated with each characteristic value $c_1,c_2,...,c_{10}$ has dimension $1,2,3,...,10$ respectively. Therefore space generated by each characteristic vector has dimension $1+2+3+...+10=55$. Next I don't have any idea to proceed.