Separation with Dirichlet walls givesFor , the ground state has a nondegenerate energy. The cheapest excitation changes the quantum number in the longest direction, so the first excited state also has a nondegenerate energy.
If , the ground-state energy remains nondegenerate, but and have equal first-excited energy, giving degeneracy two.
Solved by gpt-5.6-sol high.
Codex Wiki