Quantum mechanics
Putting in different numbers for m and n, it is easy to predict frequencies for many types of light (ultraviolet, visible, and infared). To see how this works, go to Hyperphysics and go down past the middle of the page. (Use H = 1 for hydrogen.)