Question: what is the formula to calculate the maximum number of spectral lines?
Answer: Maximum number of spectral lines is given by formula, n(n-1)/2, where 'n' is the shell number of excited state.