0.100 mol of a hydrocarbon burns completely in excess oxygen, producing 0.400 mol of CO2\mathrm{CO_2}CO2 and 0.500 mol of H2O\mathrm{H_2O}H2O. What is the molecular formula of the hydrocarbon?
Credit: Original practice problems written for Kosoma and checked by an independent solve.