Heat traces on spheres and combinatorial identities