In the given question, we have to calculate the quantum number which is given as 'n' at the excited state.
Here, the spectral lines are considered as the dark or light coloured lines which are formed when the hydrogen atom absorbs energy and excites to the excited level from the ground level.
As a result of excitation the electrons emit the light of different colours.
Now, in the question, it is given that the wavelength of the photon is \(\lambda\), whereas the value of \(f\) the Rydberg constant is fixed that is \(R\).
Now, by using the formula of Rydberg equation we will calculate the value of \(\mathrm{n}_{2}\) whose value is given as \(n\).
The Rydberg equation is:
\(\frac{1}{\lambda}={R}\left(\frac{1}{{n}_{1}^{2}}-\frac{1}{{n}_{2}^{2}}\right) \)
\(\frac{1}{\lambda {R}}=\frac{{n}^{2}-1}{{n}^{2}} \ldots . \text { (i) }\)
The equation (i) can also be written as:
\(\lambda {R}\left({n}^{2}-1\right)={n}^{2}\)
\(\lambda {Rn}^{2}-{n}^{2}=\lambda {R}\)
\({n}^{2}(\lambda {R}-1)=\lambda {R}\)
\({n}^{2}=\frac{\lambda {R}}{(\lambda {R}-1)} \)
\({n}=\sqrt{\frac{\lambda {R}}{\lambda {R}-1}}\)
So, we can see that the quantum number, \(n\) is equal to the under the root of the ratio of the \(\lambda {R}\) and \(\lambda {R}-1\)