Gauge anomalies, SU(N) irreducible representation and the number of elementary particles of a minimally extended standard model