Explain how the reactions of elements are related to the arrangement of electrons in their atoms and hence to their atomic number?