Electron configurations

Electrons fill subshells from the lowest energy up, in the order the periodic table's blocks lay out, so an element's place in the table gives its ground-state configuration and those of its ions.

From AP Chemistry.