Chemical formulas represent the elements and proportions of atoms in chemical compounds using symbols and numbers. An empirical formula gives the simplest whole number ratio of atoms in a compound. Compounds are formed via chemical bonds where atoms attract one another, and can contain two elements (binary) or three elements (ternary). The Stock system names chemical formulas using element symbols and oxidation numbers in Roman numerals in parentheses.