Finding the characteristic polynomial of a matrix given these kernels

I'm given that $A$ is an $8 \times 8$ matrix, and then I'm given the dimensions of the kernels for $A - 2I$ raised to powers $1$ and $2$, as well as dimensions for the kernels of $A - 3I$ raised to powers $1$, $2$ and $3$.
In general terms, how do I use this information to learn about the characteristic polynomial of $A$?
I assume the Rank-Nullity theorem comes into play.

If some $(A - \lambda I)^m$ has kernel of dimension $d$, then the characteristic polynomial of $A$ is divisible by $(z-\lambda)^d$.
• Because if the dimension is $d$, then the Jordan block associated with $\lambda$ is $d \times d$? Where does the power of $A - \lambda I$ come in? – BMac Jul 31 '17 at 15:52
• The generalized eigenspace for $\lambda$ is the union of kernels of powers of $A - \lambda I$, and its dimension is the sum of the sizes of the Jordan blocks associated with $\lambda$. – Robert Israel Jul 31 '17 at 17:36