Let \( M_n(\mathbb{R}) \) be the real vector space of all \( n \times n \) matrices with real entries, \( n \ge 2 \).
Let \( A \in M_n(\mathbb{R}) \). Consider the subspace \( W \) of \( M_n(\mathbb{R}) \) spanned by \(\{I_n, A, A^2, A^3, \ldots\}\).
Then the dimension of \( W \) over \(\mathbb{R}\) is necessarily