When an electron is excited to nᵗʰ energy state in hydrogen, the possible number of spectral lines emitted are
A. n
B. 2n
C. n² − n/2
D. n² + n/2