Calculate the molar mass of the hydrocarbon? Calculate the formula of the hydrocarbon when a mixture of exactly two moles of helium (He(g)) and one mole of a hydrocarbon of formula CnH2n(g) is placed in a container with a small hole through which the gas can escape. The escaping gas is collected and was found to have 6.48 times more Helium than the hydrocarbon.