Final answer:
The compound with a molar mass of 162 g/mol and an empirical formula of C5H7N has a molecular formula of C10H14N2, determined by dividing the molar mass of the compound by the empirical formula mass and multiplying the result with the empirical formula.
Step-by-step explanation:
To determine the molecular formula of a compound with a given empirical formula, we need to compare the molar mass of the empirical formula to the molar mass of the compound.
In this case, the empirical formula C5H7N has a molar mass of 81.13 g/mol. If the compound's molar mass is 162 g/mol, we can find out how many times the empirical formula mass fits into the molar mass of the compound.
Divide the molar mass of the compound by the molar mass of the empirical formula (162 g/mol ÷ 81.13 g/mol).
The result is approximately 2, which indicates that the empirical formula must be multiplied by 2 to get the molecular formula.
Therefore, the molecular formula of the compound is C10H14N2.