Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
What is the formula for magnesium nitride?
##Mg_3N_2##
Of course this is the ionic salt of ##Mg^(2+)## and ##N^(3-)##. Hydrolysis gives ammonia:
##Mg_3N_2(s) + 6H_2O(l) rarr 3Mg(OH)_2(aq) + 2NH_3(aq)##