For which $n$ there exists a closed oriented manifold $M$ of dimension $2n$ which satisfies the following Betti number condition?
$$ \beta_0=\beta_n=\beta_{2n}=1;\ \beta_i=0,\ i\ne0,n,2n. $$
By looking at the projective planes $\mathbb{CP}^2,\mathbb{HP}^2,\mathbb{OP}^2$ (The last one is the Cayley plane, for which existance is nontrivial. It has a cell complex structure with only one cell in dimension $0,8,16$ via the Hopf map), we get examples when $n=2,4,8$. And by this MSE question, $n$ is never an odd number since in that case the pairing in the middle cohomology should be skew-symmetric.
So for even $n$, are $2,4,8$ all possible answers? Is this question somehow turns into the classification of the division algebras? To be a little more curious, does our construction above cover all such possible manifolds?