where p(y) is the vector formed by the N (N -1)/2 primary invariant polynomials and q α (y) (for 1 ≤ α ≤ M ) are the secondary invariant polynomials. The primary and secondary invariant polynomials are invariant under all permutations of identical atoms, so under the direct product of symmetric groups, one symmetric group for each kind of atom.