While writing the subshell electronic configuration of elements with higher atomic number, the symbol of the noble gas preceding that element may be written in square brackets followed by the electronic configuration of the remaining subshells.
For eg, potassium(K) has the electronic configuration
1S2 2S2 2P6 3S2 3P6 4S1
The preceding noble gas Argon has the electronic configuration
1S2 2S2 2P6 3S2 3P6
So we can write the configuration of potassium using the symbol argon as [Ar]4S1
For sodium it will be [Ne] 3S1