Solution (source code)

= Solution

Write $L^-$ for the cyclopentadienyl ligand bearing its $\mathrm{CH_2}$–2-pyridyl arm; $\eta^5\!:\!\kappa N$ means that its ring and pyridyl <nitrogen> both bind the same metal. \b[$D=[\mathrm{Mo}(\eta^5\!:\!\kappa N\text{-}L)(\mathrm{CO})_2(\mathrm{NCMe})]^+$.] The base removes the pyridinium N–H <proton> in $C$, restoring a <pyridine> <lone pair>. Intramolecular <nitrogen> coordination then replaces one <acetonitrile> ligand and closes a <chelate ring>. Both CO ligands are retained; the <molybdenum> remains Mo(II), $d^4$.

This is an <proton transfer> followed by <chelation>, with metal <electron> count $4+6+2_N+4_{\mathrm{CO}}+2_{\mathrm{NCMe}}=18$. The <chelate effect>, favorable formation of the Mo–N bond, and release of a solvent molecule explain the driving force. Merely invoking a 16-to-18-electron change would be misleading because $C$ is already 18-electron. In the preceding acid treatment, protonation of the $\eta^3$ <allyl ligand> allows release of <propene>; the other <proton> resides on the pendant <pyridine>, accounting for $C$'s overall $2+$ charge. One <proton> is removed here; the cyclopentadienyl tether is not deprotonated or detached.