Alkanes are acyclic saturated hydrocarbons, meaning that all of their carbon atoms are bonded to each other in a single chain and all of their available bonds are filled with hydrogen atoms. The general formula for alkanes is CnH2n+2, where n represents the number of carbon atoms in the molecule.
In the case of an alkane with 10 carbon atoms, n = 10, so the chemical formula is C10H2n+2 = C10H2(10) + 2 = C10H22.