The general electronic configuration of halogens is?
ns2np6
ns2np3
ns2np5
ns2
Halogens have 7 electrons in their valence shell So the general formula would be (ns2np5)