Symmetry, representations, and invariants