General relativity, the cosmological constant and modular forms