We calculate $q_{ele}$ as a sum extended to the electronic energy levels, so we will include the degeneracy $g_{ele}$ of each level. \begin{equation} q_{ele}=\sum_{i}g_{ele,i}e^{-\frac{\epsilon_{ele,i}}{k T}}=g_{ele,0}+g_ {ele,1}e^{-\frac{\epsilon_{ele,1}}{k T}}+g_{ele,2}e^{-\frac{\epsilon_{ele,2}}{k T }}+.... \end{equation} In this last equation we have taken the electronic energy of the fundamental level as zero