Quantum mechanics
Just using the empirical rule given above, the one that Balmer got started and Rydberg improved, we can see how to get one set of numbers that would help Heisenberg get the kind of picture that he wanted: