I was trying to find whether there exists a finite group with the following presentation:
$$<a, b,c, d|\,a^2, b^2,c^2, d^2, (a\,c)^{4\,i}, (a\,d)^{3\,j}, (b\,c)^{3\,k}, (b\,c)^{3\,l}, (a\,c\,d)^{3\,m}, (b\,c\,d)^{4\,n},(a\,b\,c)^{3\,o},(a\,b\,d)^{4\,p},(a\,b\,c\,d)^{3\,q}>,$$ where $$1\le i,j,\ldots,q \le 3$$ are integers.
I wrote a code. (I'll give it at the end). While running, it gives the error messages as follows:
Error Message
I Coset table calculation failed -- trying with bigger table limit
I Coset table calculation failed -- trying with bigger table limit
I Coset table calculation failed -- trying with bigger table limit
I Coset table calculation failed -- trying with bigger table limit
Error, exceeded the permitted memory (`-o' command line option) in
prev[2 * limit] := 2 * limit - 1; called from
TCENUM.CosetTableFromGensAndRels( fgens, grels, fsgens ) called from
CosetTableFromGensAndRels( fgens, grels, List( trial, UnderlyingElement )
) called from Attempt( gens ) called from
FinIndexCyclicSubgroupGenerator( G, infinity ) called from
( ) called from read-eval loop at line 7 of >second.g you can 'return;'
If we now give the command "brk> return;" then GAP terminates after giving a message
gap: cannot extend the workspace any more!
I was looking for a solution for this problem. I don't want termination of the program. Otherwise I have to do $3^9=19683$ runnings vy hand and its a dam boring job.
Code
for i in [1 .. 3] do
for j in [1 .. 3] do
for k in [1 .. 3] do
for l in [1 .. 3] do
for m in [1 .. 3] do
for n in [1 .. 3] do
for o in [1 .. 3] do
for p in [1 .. 3] do
for q in [1 .. 3] do
F2 := FreeGroup( "a", "b","c", "d" );
A5 := F2 / [ F2.1^2, F2.2^2,F2.3^2, F2.4^2, (F2.1*F2.3)^(4*i), (F2.1*F2.4)^(3*j), (F2.2*F2.3)^(3*k), (F2.2*F2.3)^(3*l), (F2.1*F2.3*F2.4)^(3*m), (F2.2*F2.3*F2.4)^(4*n),(F2.1*F2.2*F2.3)^(3*o),(F2.1*F2.2*F2.4)^(4*p),(F2.1*F2.2*F2.3*F2.4)^(3*q) ];
AppendTo( "second.txt",[i,j,k,l,m,n,o,p,q,],Size(A5),"\n" );
od; od; od; od; od; od; od; od; od;
forloop already increments the counters for you, that's what makes it aforloop :-) – Max Horn Jan 18 '16 at 09:22