Connection of shell occupancy with group number

The occupancy of the electron shells (energy levels) on a atom of an element can be correlated with the number of the group in the periodic table in which the element is found.

Elements in the
same period (row) have their outer electrons in the same shell.
same group (column) have the same number of electrons in their outer shell.

12
 1H2He
3Li4Be 5B6C7N8O9F10Ne
11Na12Mg13Al14Si15P16S17Cl18Ar
19K20Ca21Sc22Ti23V24Cr25Mn26Fe27Co28Ni29Cu30Zn31Ga32Ge33As34Se35Br36Kr

The first four periods (rows) of the periodic table are shown.
These contain many important elements.

The number of electrons in this outer shell is equal to the last digit of the group number.
 
Sodium (Na) and lithium (Li) are in Group 1.

Lithium has 3 electrons. 
Two are in shell 1.
One is in shell 2.

represented by 2,1
OR
Sodium has 11 electrons. 
Two are in shell 1
Eight are in shell 2.
One is in shell 3.

represented by 2,8,1
OR