What is the formula of the ionic compound formed when Nitrogen and Beryllium chemically combine?

The formula of the ionic compound formed when Nitrogen and Beryllium chemically combine is Be3N2. This is derived from the fact that Beryllium has a +2 charge and Nitrogen has a -3 charge. In order to balance the charges, it takes three Beryllium ions (+2 charge each) to combine with two Nitrogen ions (-3 charge each) resulting in a formula of Be3N2.