what is the formula for magnesium with Nitrogen

Are you thinking of Mg3N2

It is Mg3N2

The formula for magnesium nitride can be determined by using the principle of charge balance in chemical compounds. Magnesium has a charge of +2, and nitrogen has a charge of -3.

To find the formula, you need to find the least common multiple (LCM) of the charges of the elements that balances the charges. In this case, the LCM of +2 and -3 is 6.

To balance the charges, you need one magnesium ion with a charge of +2, and three nitrogen ions with a combined charge of -6 (+3 × -2). Therefore, the formula for magnesium nitride is Mg3N2.

In summary, the formula for magnesium nitride is Mg3N2.