Rydberg was trying: n = n 0 − − C 0 ( m + m ′ ) 2 when he became aware of Balmer's formula for the hydrogen spectrum λ λ = h m 2 m 2 − − 4 In this equation, m is an integer and h is a constant (not to be confused with the later Planck constant).