Here's how to figure that out:
* Potassium is in group 1 of the periodic table, making it a +1 cation (K⁺).
* Nitrogen is in group 15, making it a -3 anion (N³⁻).
To form a neutral compound, you need three potassium ions (3 x +1 = +3) to balance out one nitrogen ion (-3). This gives the formula K₃N.