1 | initial version |
put all code a line,it can run normal,your code only choose the first and second gens of 24.better use like :if G.subgroup().gens()==2
G = SL(2,GF(3));D = G.subgroup([G[1],G[2]]);D
Matrix group over Finite Field of size 3 with 2 generators ( [0 1] [0 1] [2 1], [2 2] ) G = SL(2,GF(3)).list();G;len(G)
( [0 1] [0 1] [0 1] [0 2] [0 2] [0 2] [1 0] [1 0] [1 0] [1 1] [2 0], [2 1], [2 2], [1 0], [1 1], [1 2], [0 1], [1 1], [2 1], [0 1],
[1 1] [1 1] [1 2] [1 2] [1 2] [2 0] [2 0] [2 0] [2 1] [2 1] [1 2], [2 0], [0 1], [1 0], [2 2], [0 2], [1 2], [2 2], [0 2], [1 1],
[2 1] [2 2] [2 2] [2 2] [2 0], [0 2], [1 0], [2 1] ) 24