Let $V$ be a $n$-dimensional vector space and suppose we have a set $A$ of vectors which span $V$. Let $q$ be the smallest number such that for all $x \in V$, we can always write $x$ as a linear combination of $q$ vectors in $A$. What is the relationship between $|A|$ and $q$?
For example, here are the two examples:
- By basic linear algebra, we can have $|A| = n$ when $q = n$.
- Let $\mathbb{F} = \mathbb{Z}/p\mathbb{Z}$ be a finite field and $V = \mathbb{F}^n$. For any $q$, I can construct $A$ with size $|A| = p^{n-q} + q - 1$. Here it is: $$ A = \{(1, 0, \dots, 0, x_{q+1}, \dots, x_n) \mid x_{q+1}, \dots, x_n \in \mathbb{F}\} \cup \{e_2, \dots, e_q\},$$ where $e_2, \dots, e_q$ are standard basis vectors. This works because for any target $y = (y_1, \dots, y_n)$, we have $$ y = y_1(1, 0, \dots, 0, y_{q+1}y_1^{-1}, \dots, y_ny_1^{-1}) + y_2e_2 + \dots + y_qe_q.$$ I have no clue if a smaller set $A$ exists. (edit: may not work when $y_1 = 0$, thank you @jackson for pointing it out)
An easier question might be: Can the set $A$ be finite if we desire $q < n$, when $|\mathbb{F}| = \infty$?
A possibly harder question that I am also interested in is: What if we have $\mathbb{Z}$ instead of a field?