Percent composition and empirical formulas
A compound's mass percentages, turned into grams and then moles, give the smallest whole-number ratio of its atoms, its empirical formula, and the molar mass then fixes the molecular formula.
From General Chemistry.