[GAP Forum] Is this “loop” in GAP applicable?

Mr. Sorouhesh msorouhesh at gmail.com
Wed Dec 7 18:59:14 GMT 2011


I am new (unskilled) in this software, the GAP, and wanted to generate for
example 4 groups as follows. Although the rules are used as it is its help;
I cannot see the 4 finitely presented groups generated.

f:=FreeGroup(2);;

a:=f.1; b:=f.2;

for k in[2..5]do G:=f/[a^2,b^k,(a*b)^3]; od;

Syntax error, unexpected od, expecting ';'

I think "for" cannot be applied for such these statements as I put above
(G:=....). Any suggestion? :-)


More information about the Forum mailing list