Let $A\in M_n$. Can dimension of subspace $L(I,A,A^2,\ldots,A^k,\ldots)$ of $M_n$ can be bigger than $n$?
Using Cayley Hamilton theorem that every matrices $A^n$ can expressed as linear combination of $(A^{n-1},A^{n-2},\ldots,I)$ and $p(A)=0$,
if say opposite,and you say that it have more than n elements so it must exist some $A^{n+1}$ that you can expressed as linear combination, so that mean that we have $0=a_{n+1}A^{n+1}+a_nA^n + \cdots +a_0I$
since $p(A)=0$, $0=a_{n+1}A^{n+1}+p(A)$, that mean that $a_{n+1}A^{n+1}=0$, so it opposite what we think so, we only can have n elements, is this ok?
An arbitrary element of $\operatorname{span}\{I, A, A^2, \ldots\}$ can be written as $f(A)$, where $f$ is a polynomial (of any degree).
Cayley-Hamilton states that $\chi(A) = 0$, where $\chi$ is the characteristic polynomial.
Dividing $f$ with $\chi$, we obtain unique polynomials $q,r$ such that $f(x) = \chi(x)q(x) + r(x)$ and $\deg r < \deg \chi = n$.
Plugging in $A$ we get $$f(A) = \chi(A)q(A) + r(A) = r(A)$$
Therefore, an arbitrary element of $\operatorname{span}\{I, A, A^2, \ldots\}$ can be written as a linear combination of only $\{I, A, A^2, \ldots, A^{n-1}\}$.
Hence $\operatorname{span}\{I, A, A^2, \ldots\} = \operatorname{span}\{I, A, A^2, \ldots, A^{n-1}\}$, and the latter clearly has dimension $\le n$.