For the fust shell $\text{n}=1,\text{l}=0,\text{m}_\text{l}=0,\text{m}_\text{s}=+\frac{1}{2}$ and $-\frac{1}{2}.$ It can have 2 electrons both with opposite spins. - For $\text{n}=2,$
$\text{l}=0,\text{m}_\text{l}=0,\text{m}_\text{s}=+\frac{1}{2},-\frac{1}{2},$
$\text{l}=1,\text{m}_\text{l}=1,0+1,\text{m}_\text{s}=+\frac{1}{2},-\frac{1}{2}.$
Therefore, a total of 2 + 6 = 8 electrons are present.
- For $\text{n}=3,$ when
$\text{l}=0,\text{m}_\text{l}=0,\text{m}_\text{s}=+\frac{1}{2},-\frac{1}{2}$
$\text{l}=1,\text{m}_\text{l}=-1,0+1,\text{m}_\text{s}=\frac{1}{2},-\frac{1}{2}$
$\text{l}=2,\text{m}_\text{l}=-2,-1,0,+1,+2,,\text{m}_\text{s}$
$=+\frac{1}{2},-\frac{1}{2}$
Therefore, a total of 2 + 6 + 10 = 18 electlons aie present.
- For $\text{n}=4,$ when
$\text{l}=0,\text{m}_\text{l}=0,\text{m}_\text{s}=+\frac{1}{2},-\frac{1}{2}$
$\text{l}=1,\text{m}_\text{l}=-1,0+1,\text{m}_\text{s}=+\frac{1}{2},-\frac{1}{2}$
$\text{l}=3,\text{m}_\text{l}=-2,-1,0+1,+2,\text{m}_\text{s}=+\frac{1}{2},-\frac{1}{2}$
$\text{l}=3,\text{m}_\text{l}=-3,-2,-1,0,+1,+2,+3,\text{m}_\text{s}$
$=+\frac{1}{2},-\frac{1}{2}$
Therefore, a total of 2 + 6 + 10 + 14 = 32 electrons are present.