by the way,it is....
E is proportional to -Z2/n2
We know that a energy of a electron shell is given by E=2pi2z2e4mn2h2
But then according to aufbau principal lower the shell number lower is the energy but according to formula e is inversely proportional to n2???