Let $A\in M_{n}(C)$ such that $A^n=0$, but $A^{n-1}\neq0$.
If $B\in M_n(C)$ 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_1,a_2,...,a_{n-1}\in C$.
Note: $M_n(C)$ means a n*n matrix of complex numbers.
So, I know A is a Nilpotent matrix. I searched everyting I can for Nilpotent matrix in order to answer this question, but none of them had given me any clues. Any hints for me, please?