Calculate the maximum number of electrons that can occupy a shell with (a) n = 2, (b) n = 5, and (c) n as a variable. Note you are only looking at the orbitals with the specified n value, not those at lower energies.
Credit: Chemistry 2e by OpenStax, openstax.org, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Exercises adapted: converted to Kosoma's format, maths re-typeset, some exercises split into parts. Source commit 32c719622fbb7a0ca729cd645c1df4cf4e7d5b3a.