Alkanes are linear, or branching, compounds that are made of varying numbers of carbon atoms that are all saturated with hydrogen atoms. The formula for an alkane is CnH(2n+2). This means that the number of hydrogen atoms equals twice the number of carbon atoms, plus two. Methane is the simplest hydrocarbon possible.