Atomic Structure and Chemical Formulas