methane fraction of each type of atom
The molecular formula of methane is CH4. Therefore, the number of atoms per molecule is 5, the fraction of the atoms that are carbon is 1/5 and the fraction of the atoms that are hydrogen is 4/5.