$Let\ A ∈ M_n(F)$\ such that $A^n = 0$ but $A^{n−1} \neq 0.$
$If\ B ∈ M_n(F)$ such that $AB = BA$, prove that $B = a_0 + a_1A + a_2A^2 + ··· +a_{n−1}A^{n−1} $
for some $a_0,...,a_{n−1} ∈ F.$
I only know that $AB^n = B^nA$, and $\{v,Av,...,A^{n-1}v\}$ is a basis of $F^n$,
but I'm not sure if they are useful.