Electrons occupy shells (orbits) surrounding the nucleus. The shells are lettered K, L, M, N, O… and numbered 1,2, 3, etc., corresponding to energy levels. There is a limit to the number of electrons that can be found in a shell.
The actual number is obtained by a formula , where n is the energy level.
