The electronic configuration of the O2− ion containing 17 electrons can be written as:
1s21s22s22s22pz22px22py2px22py1