Solution (source code)

= Solution

Use a mostly-plus target <metric tensor> and the standard <open-string mode expansion> convention $\alpha_0^\mu=\sqrt{2\alpha'}p^\mu$. The <integer string oscillator level> is $N=\sum_{n\ge1}\alpha_{-n}\cdot\alpha_n$, whose <eigenvalues> are nonnegative integers. Then $L_0=N+\alpha'p^2$, so the <string mass-shell condition> gives
$$
\boxed{M^2=-p^2=\frac{N-1}{\alpha'}.}
$$
The ground state is a <tachyon>, and the level-one state is massless. The <physical string state> conditions in <old covariant string quantization> are
$$
(L_0-1)|\psi\rangle=0,\qquad L_m|\psi\rangle=0\quad(m>0).
$$
Only the positive-mode <Virasoro constraints> annihilate a ket; their negative-mode partners annihilate the corresponding bra. Imposing both signs on every ket would contradict the nonzero <Virasoro central extension>.

The <central charge> comes from <normal ordering> the quadratic oscillator expressions. Classically their <Poisson brackets> have no central term. Quantum mechanically, moving <annihilation operators> through <creation operators> produces double contractions. From the oscillator <commutator> one obtains $[L_m,\alpha_n^\mu]=-n\alpha_{m+n}^\mu$, which gives the noncentral part $(m-n)L_{m+n}$.

The coefficient is fixed by the <free-boson Virasoro central term>. On a formal zero-momentum vacuum, for $m>0$,
$$
L_{-m}|0\rangle=\frac12\sum_{r=1}^{m-1}\alpha_{-(m-r)}\cdot\alpha_{-r}|0\rangle.
$$
The two contraction pairings give
$$
\langle0|L_mL_{-m}|0\rangle=\frac D2\sum_{r=1}^{m-1}r(m-r)=\frac D{12}m(m^2-1).
$$
Here $\eta_{\mu\nu}\eta^{\mu\nu}=D$; the time coordinate contributes one, just as each spatial coordinate does. Comparing with the <Virasoro algebra> proves
$$
\boxed{c_{\rm matter}=D.}
$$
This counts covariant target coordinates. It is distinct from the $D-2$ physical transverse polarizations. Including the <central charge of reparameterization ghosts> gives $c_{\rm total}=D-26$; cancellation of the <worldsheet Weyl anomaly> gives the usual <critical dimension of the bosonic string> $D=26$.

A general level-one state is
$$
|\epsilon;k\rangle=\epsilon_\mu\alpha_{-1}^\mu|0;k\rangle.
$$
The zero-mode constraint requires $k^2=0$. Since $[L_1,\alpha_{-1}^\mu]=\alpha_0^\mu$, the remaining nontrivial positive-mode constraint is $k\cdot\epsilon=0$; all $L_m$ with $m\ge2$ act trivially at this level. Thus the <polarization vector> is transverse to a nonzero null momentum.

There is also a <null string state> $L_{-1}|0;k\rangle=\sqrt{2\alpha'}\,k\cdot\alpha_{-1}|0;k\rangle$. It is physical when $k^2=0$ and orthogonal to every physical polarization. The <null-state quotient of a string> therefore identifies
$$
\epsilon\sim\epsilon+\lambda k.
$$
Choose $k=(E,E,0,\ldots,0)$. Transversality sets $\epsilon^1=\epsilon^0$, and the null-state identification removes this common component. The remaining $D-2$ spatial components have positive norm. Hence \b[the physical level-one states form a massless vector with $D-2$ polarizations], or 24 at the critical dimension. The removed component is gauge redundancy. States violating the constraints, including independent timelike negative-norm polarizations, are unphysical; physical null states are removed by the quotient rather than counted as additional particles.