I am trying to prove that for an $n\times n$ matrix $A$ there exists a non-zero polynomial $p(x)$ such that $p(A) = 0$.
Is my proof valid?
Proof:
Suppose $\deg(p(x)) = n$. Since the coefficients of $p$ can be whatever I want them to be $p(A)$ is simply a linear combination of the set: $$B_n = \{I,A,A^2,\dots,A^n\}$$
Now consider:
$$\lambda_0I + \lambda_1A + \dots+\lambda_nA^n = 0$$
If $\lambda_i = 0 \space \forall i \in \{0,1,\dots,n\}$ then $B_n$ is a linearly independent set. Now I consider a polynomial of degree $n+1$. So $B_{n+1} = \{I,A,A^2,\dots,A^n,A^{n+1}\}$. I do the same check and if we get the same result I continue the process until $\deg(p(x)) = n^2 +1$.
Since $\dim(M_{n\times n}(F)) = n^2 \implies B_{n^2+1}$ is linearly dependent $\iff (\lambda_0I + \lambda_1A +\dots+\lambda_{n^2+1}A^{n^2+1} = 0 \implies$ for some $i$, $\lambda_i \neq 0 $.)
Using this I just construct $p(x)$ with these coefficients, and we then have $p(A) = 0$.
Is there a better way? Or is my method okay?