Modular and quasimodular forms, partitions, and representations of symmetric groups