Modular forms in number theory and beyond