Skip to content

Commit

Permalink
Exponent for groups with know conjugacy classes
Browse files Browse the repository at this point in the history
In this case no need to compute all Sylow subgroups.
  • Loading branch information
frankluebeck authored and fingolfin committed Jun 22, 2022
1 parent 126e3a0 commit 954bff1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/grp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,11 @@ function(G)
return exp;
end);

# ranked below the method for abelian groups
InstallMethod( Exponent,
[ "IsGroup and IsFinite and HasConjugacyClasses" ],
G-> Lcm(List(ConjugacyClasses(G), c-> Order(Representative(c)))) );

InstallMethod( Exponent,
"method for finite abelian groups with generators",
[ IsGroup and IsAbelian and HasGeneratorsOfGroup and IsFinite ],
Expand Down

0 comments on commit 954bff1

Please sign in to comment.