For $A\in\mathbb{C}^{5\times 5}$ it is known that $p_A(\lambda)=(\lambda-2)^3(\lambda+7)^2$ and $m_A(\lambda)=(\lambda-2)^2(\lambda+7)$. Here, $p_A$ is the characteristic and $m_A$ is the minimal polynomial. Then what is the Jordan canonical form of $A$?
The only thing I could think of was to use $m_A(\Lambda +N)=0$ where $\Lambda$ is the diagonal matrix of the eigenvalues of $A$ and $N$ is the direct sum of tight shifts. However this is a bit messy, and I am sure there is a fast way, so how to do it?