$A$ is a $n\times n$ matrix with entries from $\mathbb{R}$. If the characteristic polynomial for $A$ has $n$ distinct roots, then every $n\times n$ matrix (with real entries) that commutes with $A$ commutes with each other.
I know that $n$ distinct roots implies diagonalizable. But I am not sure where to go from there. I have played around with the identities $AB=BA, AC=CA, A=P^{-1}DP$ to try and get to $BC=CB$ but I am not seeing it. I would love any help. This is self study and not assigned.