Determining Empirical Formulas