Write the general formula for all alkanes

The general formula for alkanes is CnH2n+2, where "n" represents the number of carbon atoms in the alkane molecule.