The following formula can be used to compute the observed hydrogen-spectrum wavelengths: 1/λ=R(1/ni2−1/nf2)