/* www-ATLAS of Group Representations. G2(3) represented as 7 x 7 matrices over GF(3). */ F:=GF(3); x:=CambridgeMatrix(1,F,7,[ "2000000", "0010000", "0100000", "0000100", "0001000", "0000001", "0000010"]); y:=CambridgeMatrix(1,F,7,[ "0100000", "2200000", "0001000", "2122000", "0000010", "2100220", "0212211"]); G:=MatrixGroup<7,F|x,y>; print "Group G is G2(3) < GL(7,GF(3))";