To know the empirical formula we will determine how many moles of each element we have. To do this, we must look up in the periodic table the atomic weight of each element.
The atomic weight of Ni = 58.6934 g/mol
O = 15.999 g/mol
Now we divide the mass of each element by its atomic weight to determine how many moles are in the sample.
![\begin{gathered} \text{Mol of Ni = }\frac{\text{Mass of Ni}}{\text{Atomic weight}} \\ Mol\text{ of Ni = }\frac{\text{2.1 g}}{58.6934\text{ g/mol}}=0.036\text{ mol of Ni} \end{gathered}](https://img.qammunity.org/2023/formulas/chemistry/college/l0ykuqkurjb2az8gn98vi1pmzqrf5q5dcu.png)
![\begin{gathered} \text{Mol of O = }\frac{Mass\text{ of O}}{\text{Atomic weight}} \\ \text{Mol of O = }\frac{0.\text{58 g}}{15.999\text{ g/mol}}=\text{ 0.036 mol of O} \end{gathered}](https://img.qammunity.org/2023/formulas/chemistry/college/63ku6v3mjzjp05kuw5qppmytk0r996tvpy.png)
In the sample, there are 0.036 moles of oxygen and 0.036 moles of Ni. The ratio is 1 to 1, so the empirical formula will be: NiO