Condensed electron configuration:
N = [He]2s² 2p
Mg = 1s² 2s²2p⁶ 3s²
The formula of their compound is: Mg₃N₂.
The valence electrons existing in Magnesium are 2 and that of nitrogen are 5. Here there are 3 Mg atoms and 2 nitrogen atoms.
The 3 Mg atoms share their 2 valence electrons to the two nitrogen atoms present to form an ionic compound. When the Mg shares its 2 electrons then it becomes positively charged Mg₂⁺ ion.
Formal charge of an atom = No. of valence electrons – No. of lone pair of electrons – No. of bonds formed
Here the formal charge of each atoms in Mg3N2 can be found.
The formal charge of Mg = 2 – 0 -2
= 0
The formal charge of Nitrogen = 5 - 2 = 3
To know more about Electron configuration, refer to this link:
brainly.com/question/11530251
#SPJ4