Valency refers to the number of electrons an atom gains, loses, or shares to achieve a stable electron configuration. In the periodic table, the number of valency electrons often corresponds to the group number.
If an element has 5 valency electrons, it would typically be in Group 15 (also known as Group VA or Group 5A). Group 15 elements include nitrogen (N), phosphorus (P), arsenic (As), antimony (Sb), and bismuth (Bi), among others. These elements have five valence electrons in their outermost energy level (n = 5), specifically in the p orbital.