An electron moves around a nucleus in 3d space so it is required that there should be 3 quantum no. each specifying its degree of freedom . the three quantum no. are n,l & m , but n,l& m specify the energy levels avalaible to electron & m specifies the direction of angular momentum vector . So what is actually meant by degree of freedom & how do n,l & m specify it ?