Mg2+ N3- Formula
The chemical formula for the compound composed of magnesium cations (Mg2+) and nitride anions (N3-) is Mg3N2. This compound consists of two magnesium ions and three nitrogen ions, with a 2:3 ratio between the cations and anions respectively. The ions are held together by ionic bonds, which result from the transfer of electrons from magnesium to nitrogen, creating a lattice structure of alternating positive and negative ions that form a stable solid at room temperature and atmospheric pressure.