Here's how it works:
* Cn: This part indicates the number of carbon atoms in the molecule.
* H2n+2: This part indicates the number of hydrogen atoms. The formula (2n+2) means that for every carbon atom, there are two hydrogen atoms, plus two extra hydrogen atoms.
Examples:
* Methane (CH4): n = 1 (one carbon atom), so the formula is C1H(2*1)+2 = CH4.
* Ethane (C2H6): n = 2 (two carbon atoms), so the formula is C2H(2*2)+2 = C2H6.
* Propane (C3H8): n = 3 (three carbon atoms), so the formula is C3H(2*3)+2 = C3H8.
This formula helps you predict the molecular formula of any alkane based on the number of carbon atoms it has.