Nitrogen is an element in group 15 of the periodic table. It has five electrons in its outer shell and each one of these is used in a bond with hydrogen. In the formation of ammonia, three of these electrons are used in bonding leaving a single pair of lone electrons remaining.