CₙH₂ₙ₊₂
* C represents Carbon
* H represents Hydrogen
* n represents the number of carbon atoms in the molecule
This formula applies to alkanes, which are saturated hydrocarbons (meaning they have only single bonds between carbon atoms).
Here are some examples of how this formula works:
* Methane (CH₄): n = 1, so the formula becomes C₁H₂(1)+₂ = CH₄
* Ethane (C₂H₆): n = 2, so the formula becomes C₂H₂(2)+₂ = C₂H₆
* Propane (C₃H₈): n = 3, so the formula becomes C₃H₂(3)+₂ = C₃H₈
There are also other types of hydrocarbons, such as alkenes (containing double bonds) and alkynes (containing triple bonds), which have slightly different general formulas:
* Alkenes: CₙH₂ₙ
* Alkynes: CₙH₂ₙ₋₂
Remember, these are just general formulas. The actual structure of a hydrocarbon molecule can be much more complex, depending on the arrangement of the carbon and hydrogen atoms.