Hydrocarbons, functional groups and isomers
The prefix gives the number of carbon atoms, the functional group gives the family, and isomers share a formula but differ in structure.
A worked example
Propan-1-ol is C3H7OH: prop- for three carbons and -ol for the hydroxyl group. Pentane, C5H12, has three structural isomers.
The mistake people actually make
Alkanes follow CnH2n+2, alkenes follow CnH2n and alkynes follow CnH2n-2. Saturated chains undergo substitution reactions, while only double and triple bonds undergo addition.