Magnesium nitrate compound contains one atom of magnesium, two atoms of nitrogen, and six atoms of oxygen.