gap> N; 576 gap> ans; false gap> C:=ConjugacyClasses(G); [ ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), () ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (5,7)(6,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (4,6,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (3,5,7)(4,6,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (2,4)(6,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (2,4,6,8)(5,7) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (2,4)(3,5,7) (6,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7) (4,8), (2,6)(3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (1,2) (3,4)(5,6,7,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6)(3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (1,2)(3,4)(5,8,7,6) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5) (2,6), (3,7)(4,8), (2,6)(3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6) (3,5) ), (1,2,3,4,5,6,7,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6)(3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7) (2,4,6)(3,5) ), (1,2,3,4,5,8,7,6) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7)(4,8), (2,6) (3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (1,3)(2,4)(5,7) (6,8) ), ConjugacyClass( Group( (1,2,3,4,5,6,7,8), (1,5)(2,6), (3,7) (4,8), (2,6)(3,7), (3,7)(4,8), (1,5,3,7)(2,6), (1,7)(2,4,6)(3,5) ), (1,3,5,7)(2,4,6,8) ) ] gap> Length(C); 13 gap> for i in [1..13] do Print(i," ",Representative(C[i]," ",Length(Elements(C[i])),"\n"); od; Syntax error: ) expected for i in [1..13] do Print(i," ",Representative(C[i]," ",Length(Elements(C[i]))\ ,"\n"); od; \ ^ gap> for i in [1..13] do Print(i," ",Representative(C[i]," ",Length(Elements(C[i])),"\n")); od; Error, Function: number of args must be 1 1 gap> for i in [1..13] do Print(i," ",Representative(C[i])," ",Length(Elements(C[i])),"\n"); od; 1 () 1 2 (5,7)(6,8) 36 3 (4,6,8) 16 4 (3,5,7)(4,6,8) 64 5 (2,4)(6,8) 6 6 (2,4,6,8)(5,7) 72 7 (2,4)(3,5,7)(6,8) 48 8 (1,2)(3,4)(5,6,7,8) 72 9 (1,2)(3,4)(5,8,7,6) 72 10 (1,2,3,4,5,6,7,8) 72 11 (1,2,3,4,5,8,7,6) 72 12 (1,3)(2,4)(5,7)(6,8) 9 13 (1,3,5,7)(2,4,6,8) 36 gap> quit;