In 1888 Johannes Rydberg generalized and greatly increased the explanatory utility of Balmer's formula. He predicted that λ is related to two integers n and m according to what is now known as the Rydberg formula :