Boltzmann distribution
From Boltzmann distribution we have for the number of excited atomic species "i":