TITLE: Does there exist a non-parallelisable manifold with exactly $k$ linearly independent vector fields?
QUESTION [6 upvotes]: For any positive integer $k$, is there a smooth, closed, non-parallelisable  manifold $M$ such that the maximum number of linearly independent vector fields on $M$ is $k$?

Note that any such $M$, for any $k$, must have Euler characteristic zero by the Poincaré-Hopf Theorem.
Without the non-parallelisable hypothesis, the $k$-dimensional torus is an easy example.
One might think that the product of a $k$-dimensional torus with a manifold which admits no nowhere-zero vector fields provides an example, but this doesn't necessarily work. For example, the product of a torus and an even dimensional-sphere is actually parallelisable. The reason this approach fails with the even-dimensional sphere is that it is has stably trivial tangent bundle; maybe using a manifold with non-stably trivial tangent bundle might work.
Determining the maximal number of linearly independent vector fields on a manifold is not easy in general. Even for spheres, the answer is complicated: if $n + 1 = 2^{4a+b}u$ where $a \geq 0$, $0 \leq b \leq 3$ and $u$ is odd, then the maximal number of linearly independent vector fields on $S^n$ is $8a + 2^b - 1$. So for the first few odd values of $n$ we have
$$
\begin{array}{c|c}
& \text{maximum number of linearly}\\ 
n &\text{independent vector fields on}\ S^n\\
\hline
1 & 1\\
3 & 3\\
5 & 1\\
7 & 7\\
9 & 1\\
11 & 3\\
13 & 1\\
15 & 8
\end{array}
$$
The above result shows that the answer to the initial question is yes for $k \equiv 0, 1, 3, 7 \bmod 8$.

REPLY [2 votes]: My advisor gave me an example of a closed orientable four-manifold which admits two linearly independent vector fields but not three.
Let $L$ be a complex line bundle over $T^2 = S^1\times S^1$ such that $\langle c_1(L), [T^2]\rangle = 1$; such a line bundle exists because $c_1 : \operatorname{Vect}^1_{\mathbb{C}}(T^2) \to H^2(T^2; \mathbb{Z}) \cong \mathbb{Z}$ is an isomorphism. Then define $M$ to be the total space of the projectivised bundle $\mathbb{P}(L\oplus\varepsilon_{\mathbb{C}}^1)$. Note that $\pi : M \to T^2$ is a $\mathbb{CP}^1$-bundle. We can lift the two linearly independent vector fields on $T^2$ to $M$ via an Ehresmann connection, so $M$ admits at least two linearly independent vector fields
As $L$ is an open subset of $M$, $M$ contains the image of the zero section of $L$ as a compact submanifold, call it $E$. As $\langle e(L), [T^2]\rangle = \langle c_1(L), [T^2]\rangle = 1$, $E$ has self-intersection $1$; in particular, it's mod $2$ intersection number $E\cdot E$ is $1$. On the other hand, the mod $2$ intersection number is also given by $E\cdot E = \langle \alpha\cup\alpha, [T^2]\rangle$ where $\alpha \in H^2(M; \mathbb{Z}_2)$ is the Poincaré dual of the $\mathbb{Z}_2$-fundamental class of $E$. Using the language of Steenrod squares and Wu classes, one can show that $x\cup x = (w_2 + w_1\cup w_1)\cup x$ for all $x \in H^2(M; \mathbb{Z}_2)$; see my answer here for example. As $M$ is orientable, we see that $$1 = E\cdot E = \langle\alpha\cup\alpha, [T^2]\rangle = \langle w_2\cup\alpha, [T^2]\rangle,$$ so $w_2 \neq 0$ (i.e. $M$ is not spin). As such, $M$ cannot admit three linearly independent vector fields; if it did, then $TM \cong \ell\oplus\varepsilon_{\mathbb{R}}^3$ for some real line bundle $\ell$ and hence $w_2 = 0$.
From this construction we obtain, for any $k \geq 2$, an example of a closed, orientable, non-parallelisable manifold such that the maximum number of linearly independent vector fields it admits is $k$, namely $M\times T^{k-2}$. It admits at least $k$ linearly independent vector fields as it is a $\mathbb{CP}^1$-bundle over $T^k$, and it does not admit any more as it is not spin (a product of manifolds is spin if and only if the individual factors are spin). For $k = 1$, we can take $S^5$.