The total energy of the system for N particles at ground level (n=1) is
Etot=N⋅8mL2n2h2=8mL2Nh2. Now the ground level is occupied by two particles, i.e., according to the previous expression,
Eg.s.=4mL2h2. The Fermi energy is (for two electrons for each state, i.e. n=N/2)
EF=8π2mh2⋅(Lnπ)2=8mh2⋅(2LN)2.
Comments