Skip to content

Commit 5af1a3f

Browse files
fix IsPrime(n) for SL2
1 parent c85174d commit 5af1a3f

2 files changed

Lines changed: 42 additions & 30 deletions

File tree

lib/Orru/sl2methodsExtra.gi

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ InstallMethod(CosetPosFunction,
1010

1111
n := LevelOfCongruenceSubgroup(G);
1212

13+
if IsPrime(n) then
14+
TryNextMethod();
15+
fi;
16+
1317
ProjLine := FiniteProjectiveLine(n);
1418

1519
canonicalRep := function(g)
@@ -54,6 +58,10 @@ InstallMethod(CosetRepFunction,
5458

5559
n := LevelOfCongruenceSubgroup(G);
5660

61+
if IsPrime(n) then
62+
TryNextMethod();
63+
fi;
64+
5765
ProjLine := FiniteProjectiveLine(n);
5866

5967
cosetOfInt := function(i)
@@ -94,6 +102,10 @@ InstallMethod(CosetRepFunction,
94102

95103
n:=LevelOfCongruenceSubgroup(G);
96104

105+
if IsPrime(n) then
106+
TryNextMethod();
107+
fi;
108+
97109
ProjLine := FiniteProjectiveLine(n);
98110

99111
GG:=AmbientGroupOfCongruenceSubgroup(G);
@@ -127,4 +139,4 @@ InstallMethod(CosetRepFunction,
127139
cosets:=transversal,
128140
poscan:=poscan
129141
));
130-
end);
142+
end);

lib/Orru/tutorial/tutorialSL3.xml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,35 @@
2222
x= &0 &1 &2 &3 &4 &5 &6 &7 &8 &9 \\
2323
N &&&&&&&&&&\hline\\
2424
10+x &2 &2 &7 &0 &4 &4 &6 &2 &7&2 \\
25-
20+x &9\\
26-
30+x\\
27-
40+x\\
28-
50+x\\
29-
60+x\\
30-
70+x\\
31-
80+x\\
32-
90+x\\
33-
100+x\\
34-
110+x\\
35-
120+x\\
36-
130+x\\
37-
140+x\\
38-
150+x\\
39-
160+x\\
40-
170+x\\
41-
180+x\\
42-
190+x\\
43-
200+x\\
44-
210+x\\
45-
220+x\\
46-
230+x\\
47-
240+x\\
48-
250+x\\
49-
260+x\\
50-
270+x\\
51-
280+x\\
52-
290+x\\
53-
300+x
25+
20+x &9 &4&8&4&17&4&6&5&13&4\\
26+
30+x &20&4&12&10&10&8&21&4&12&8\\
27+
40+x &&&&&&&&&&\\
28+
50+x &&&&&&&&&&\\
29+
60+x &&&&&&&&&&\\
30+
70+x &&&&&&&&&&\\
31+
80+x &&&&&&&&&&\\
32+
90+x &&&&&&&&&&\\
33+
100+x &&&&&&&&&&\\
34+
110+x &&&&&&&&&&\\
35+
120+x &&&&&&&&&&\\
36+
130+x &&&&&&&&&&\\
37+
140+x &&&&&&&&&&\\
38+
150+x &&&&&&&&&&\\
39+
160+x &&&&&&&&&&\\
40+
170+x &&&&&&&&&&\\
41+
180+x &&&&&&&&&&\\
42+
190+x &&&&&&&&&&\\
43+
200+x &&&&&&&&&&\\
44+
210+x &&&&&&&&&&\\
45+
220+x &&&&&&&&&&\\
46+
230+x &&&&&&&&&&\\
47+
240+x &&&&&&&&&&\\
48+
250+x &&&&&&&&&&\\
49+
260+x &&&&&&&&&&\\
50+
270+x &&&&&&&&&&\\
51+
280+x &&&&&&&&&&\\
52+
290+x &142&78&121&48&239&70&141&107&98&60\\
53+
300+x &325&&&&&&&&&
5454
\end{array}
5555
</M>
5656

0 commit comments

Comments
 (0)