and the formula of the compound is
Mg
3
N
2
.