The easiest way to write the electronic configuration for any element is by using a diagonal rule for electron filling order in the different subshells according to the Aufbau principle.