I'm putting together a collection of tables of orders of certain groups and there's a theorem that specifies that some of those groups are infinite. It is Theorem 3(5) of M. I. Prischepov, "Asphericity, atoricity, and symmetrically presented groups":
I've written a programme in GAP to capture $(a)-(c)$ and, luckily, I included $n=2$ by mistake (and it was a mistake because, as you can see, $n$ divides $4r, 4s$, and $2s$, so it does not satisfy any of $(a)-(c)$); however, values of $n=2$ appeared in the output.
Why? What do I do to correct this mistake?
Here is my code:
for n in [2..10] do
for r in [2..10] do
for s in [1..10] do
if
r>2*s and
(not (3*r=0 mod n or
4*r=0 mod n or
2*s=0 mod n or
s+r=0 mod n or
s-r=0 mod n or
s+2*r=0 mod n or
s-2*r=0 mod n or
s+3*r=0 mod n or
2*s+r=0 mod n) or
not (3*s=0 mod n or
4*s=0 mod n or
5*s=0 mod n or
2*r=0 mod n or
r+s=0 mod n or
r-s=0 mod n or
r+2*s=0 mod n or
r-2*s=0 mod n or
r+3*s=0 mod n or
2*r+s=0 mod n) or
not (2*r=0 mod n or
3*r=0 mod n or
2*s=0 mod n or
3*s=0 mod n or
r+s=0 mod n or
r-s=0 mod n or
r+2*s=0 mod n or
s+2*r=0 mod n))
then
H:=[r, n, s];
Print(H, "\n");
fi;
od;
od;
od;
Print("Done.\n");
Please help :)

((4*r) mod n)=0instead of(4*r mod n)=0) that seem to have done the trick. I've edited your answer to include these. (I hope it's right and that you don't mind.) – Shaun Oct 26 '17 at 10:24((4*r) mod n) =0is different to(4*r mod n) = 0? – Matthew Towers Oct 26 '17 at 10:46(4*r mod n)=0but((r-s) mod n)=0&(r-s mod n)=0are different. Adding such brackets gives different results. – Shaun Oct 26 '17 at 11:20