How to find the quantum number of an element?