Resonance, topological invariants of groups, moduli