Magnesium reacts with nitrogen to form magnesium nitride. The chemical formula for this reaction is #Mg+N_2-> MgN_2#. What is the product, or what are the products, of this reaction?
The formula for magnesium nitride is
As do many active metals, magnesium nitride can be formed by heating the metal (fiercely!) under dinitrogen gas:
As a nitride it can by hydrolyzed by water to form magnesium hydroxide and ammonia gas: