Structure of modular groups and generalizations Automorphic forms mathematics