Write the electronic configuration of the element with atomic number 17. Indicate the valency of the element.