Question: what is the molecular formula for hydrocarbon?
Answer: The formula for acyclic saturated hydrocarbons (i.e., alkanes) is CnH2n+2. The most general form of saturated hydrocarbons is CnH2n+2(1-r), where r is the number of rings. Those with exactly one ring are the cycloalkanes.