Skip to content

Commit b2506e1

Browse files
authored
Add a few more IsRegularPGroup tests (#5775)
Contributed by Jack Schmidt in a comment on PR #5359. Also change phrasing in the documentation for IsRegularPGroup.
1 parent 8936b67 commit b2506e1

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

lib/grp.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ InstallTrueMethod( IsPowerfulPGroup, IsFinite and IsPGroup and IsAbelian );
488488
##
489489
## <Description>
490490
## <Index Key="RegularPGroup">Regular <M>p</M>-group</Index>
491-
## A finite <M>p</M>-group <A>G</A> is said to be a <E>regular <M>p</M>-group</E>
491+
## A finite <M>p</M>-group <A>G</A> is a <E>regular <M>p</M>-group</E>
492492
## if for all <M>a,b</M> in <A>G</A>, one has <M>a^p b^p = (a b)^p c^p</M>
493493
## where <M>c</M> is an element of the derived subgroup of the group generated
494494
## by <M>a</M> and <M>b</M> (see&nbsp;<Cite Key="Hal34"/>).

tst/testinstall/pgroups.tst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,29 @@ gap> Number(myList,IsRegularPGroup);
222222
5
223223
gap> g:=AbelianGroup(ListWithIdenticalEntries(2000,2));;
224224

225+
#
226+
# Test IsRegularPGroup method thoroughly
227+
#
228+
gap> IsRegularPGroup(SmallGroup(8, 3)); # Case 1
229+
false
230+
gap> IsRegularPGroup(SmallGroup(2187, 224)); # Case 2
231+
false
232+
gap> IsRegularPGroup(SmallGroup(27,3)); # Case 3
233+
true
234+
gap> IsRegularPGroup(SmallGroup(81, 1)); # Case 4
235+
true
236+
gap> IsRegularPGroup(SmallGroup(243,22)); # Case 5
237+
true
238+
gap> IsRegularPGroup(SmallGroup(2187, 4487)); # Case 6
239+
true
240+
gap> IsRegularPGroup(SmallGroup(81, 7)); # Case 7
241+
false
242+
gap> IsRegularPGroup(SmallGroup(78125, 684)); # Case 8
243+
true
244+
gap> IsRegularPGroup(SmallGroup(243, 51)); # Case 10 (no case 9 found)
245+
false
246+
gap> IsRegularPGroup(SmallGroup(2187, 663)); # Case 11, takes 3 seconds
247+
true
248+
225249
#
226250
gap> STOP_TEST("pgroups.tst", 1);

0 commit comments

Comments
 (0)