Generalizations of a Theorem of Hecke