Representation Theory and Automorphic Functions