An electron in an orbital is represented by four quantum number.
∙ Principal quantum number
∙ Angular quantum number
∙ Magnetic quantum number
∙ Spin quantum number
Where 'n' represents principal quantum number.
The energy of an electron in an orbit is given by:
En=−2.18×10−18(1n2) J
Thus, as the value of n increases the energy also increases.