Here's how we arrive at this:
* Silver (Ag) has a +1 charge as a cation.
* Nitride (N) has a -3 charge as an anion.
To balance the charges, we need three silver ions (Ag⁺) to combine with one nitride ion (N⁻³), resulting in the formula Ag₃N.