Magic numbers are typically obtained by empirical studies; if the form of the nuclear potential is known, then the Schrödinger equation can be solved for the motion of nucleons and energy levels determined.