The Rydberg formula is essential for calculating wavelengths (or frequencies/energies) of spectral lines in hydrogen-like atoms. The formula is \( \frac{1}{\lambda} = R_H \left(\frac{1}{n_f^2} - \frac{1}{n_i^2}\right) \), where \( n_i \) is the initial higher energy level and \( n_f \) is the final lower energy level. For ratio problems, it's often helpful to keep the Rydberg constant (\( R_H \)) as a variable and cancel it out at the end, simplifying calculations. Ensure correct identification of \( n_i \) and \( n_f \) for each transition.