现充|junyu33

How to Construct a Non-abelian Group with p^3 Elements

Recently, while working through the exercises in Chapter 6 of Silverman’s Abstract Algebra: An Integrated Approach, I came across the following challenge problem.

6.16 (d): Challenge Problem. Construct a non-abelian group of order p3 for every prime p.

First attempts

We know that when p=2, two examples immediately come to mind: D4 and Q8. But for other primes p, this does not seem obvious at all—at least not for someone encountering this problem for the first time. The difficulty of the problem lies in the “non-abelian” condition: it is a rather tricky requirement, and at this point I did not yet have any handy tools for dealing with it.

So I recalled an exercise from our university textbook:

Let G=(a,b)a,bRa0, and define (a,b)(c,d)=(ac,ad+b). Prove that G forms a group under the operation .

A quick check shows that this operation is indeed noncommutative. So this gives a non-abelian group on R2, with identity element (1,0). But here the underlying set is R2; how can we “adapt” it to a group of order p3?

One direct idea is to let aCp2,bCp, and simply copy the textbook operation. However, this does not work, because some elements do not have inverses. For example, you cannot find an inverse for the element (0,0), since (0,0)(c,d)=(0,b)(1,0), so this construction does not form a group.

So my exploration got stuck. It seemed that we might need to impose some additional restrictions on the domains of a and b, but how exactly to do that was far from clear. At this point, this line of thought appeared to hit a dead end.

The semidirect product approach

Then one day, while randomly flipping through later parts of Silverman, I noticed a new symbol: , called the semidirect product. It looks like an ordinary direct product that has somehow been “twisted,” so the resulting group ought to be noncommutative.

So I tried to construct Cp2Cp. But how exactly is such a construction carried out? The textbook explanation was long and cumbersome, and I was too lazy to read it carefully, so I asked GPT for the construction of a semidirect product, and got the following answer:

φ:HAut(N)NφH:(n1,h1)(n2,h2)=(n1φ(h1)(n2),h1h2)

I had only just encountered the notation Aut(N) for the first time in exercise 6.26 on Sylow theory. It seemed to mean “automorphisms,” and then one also has to prove that Aut(Cn) is isomorphic to (Z/nZ)×. So I gradually understood that Aut is actually a set of maps, whose objects are “maps” rather than “elements,” and these maps are required to be isomorphisms.

Then I thought about it heuristically. For a cyclic group Cn, suppose its generator is g. If g is sent to gd (where dn), then every original element gk gets sent to gkd, and there are only n/d distinct elements of the form gkd. So such a map certainly cannot be bijective, and hence cannot be an isomorphism. Therefore a natural conclusion is that gcd(d,n)=1, which corresponds exactly to the elements of (Z/nZ)×.

Now let us return to Aut(N), namely Aut(Cp2). By the same reasoning, we immediately get |Aut(Cp2)|=(p1)p, and its elements are ϕk:ggkgcd(k,p2)=1.

The next question is this: we need a homomorphism HAut(N), and the image Image(H) is a subgroup of Aut(N); meanwhile, by the First Isomorphism Theorem, |Image(H)||H|. Hence |Image(H)|gcd(|H|,|Aut(N)|)=p, so Image(H) can only be e or Cp. The former is obviously the trivial map id, corresponding to the direct product, which does not satisfy the non-abelian requirement. Therefore, we are forced to consider how to construct a subgroup of Aut(N) isomorphic to Cp.

Let us restate the goal: within the set ϕk:ggkgcd(k,p2)=1, we want to choose p elements forming a cyclic group of order p.

At first glance, this does not seem easy. To gain some intuition, I tried the case p=3. Then Aut(C32)=gg,gg2,gg4,gg5,gg7,gg8. First of all, gg must be in the subgroup. Then the remaining two elements are ggk and g(gk)k=gk2. Let us check whether closure holds:

Thus for p=3, the valid exponents are 1,4,7. At this point, a clever reader may boldly guess that for arbitrary p, the corresponding values should be 1,p+1,2p+1,,p(p1)+1. Let us check whether this really works—which is equivalent to the following classical number-theoretic congruence:

(1+p)k1+kp(modp2)

The proof is easy by the binomial theorem:

(1+p)k=1+kp+(k2)p2+1+kp(modp2)

Therefore, we have found a valid homomorphism φ:HAut(N) satisfying:

φ(h1)(n2)=n21+h1p

Substituting this into the original semidirect product formula gives:

(n1,h1)(n2,h2)=(n1φ(h1)(n2),h1h2)=(n1n21+h1p,h1h2)

But there is actually a slight problem with this notation, because h1p is an operation between a group element and an integer, and such an operation is not defined. So we need to specify explicitly that nZ/p2Z,hZ/pZ, and then replace the original multiplication by addition, and exponentiation by multiplication. This yields:

(a,b)(c,d)=(a+c(1+bp),b+d)

If we check associativity (you can use a computer algebra system to reduce the pain of hand computation), we find that whether we associate left or right, the result is (x,y)(a,b)(c,d)=(x+a(1+yp)+c(1+yp+bp),y+b+d).

As for commutativity, (0,1)(1,0)=(1+p,1),(1,0)(0,1)=(1,1), which are not equal, so the group is non-abelian.

The identity element is easily seen to be (0,0). As for inverses, we seek (x,y) such that (a,b)(x,y)=(0,0). Clearly y=b, and then we have a+x(1+bp)=0(modp2). Since (1+bp) is not divisible by p, it has an inverse modulo p2, hence x=a(1+bp)1(modp2).

In summary, we have successfully constructed a non-abelian group of order p3.

Relation to the textbook construction

Although I had solved the problem, I was still curious whether the textbook route was really a dead end. In fact, if one looks carefully, the structure of the textbook operation is somewhat similar to my answer, so let us try to transform the textbook operation a bit:

(a,b)(c,d)=(ac,ad+b)

Set x=b,y=a,u=d,v=c, and then the equation becomes:

(x,y)(u,v)=(yu+x,yv)

This at least confirms that it bears some resemblance to the formula we derived earlier, (a+c(1+bp),b+d). But there are still some differences in the details: for instance, the element y probably needs to be modified, and the term yv on the right somehow has to be turned into addition.

Note that our operation is taking place in Cp2Cp, so x,uZ/p2Z. Then what about y,v? We can try to reinterpret the earlier homomorphism φ(h1)(n2)=n21+h1p in additive form, namely by setting

φ(h1)=1+h1p(modp2)

As shown earlier, all 1+h1p form a subgroup of (Z/p2Z)× of size p. Therefore we may let U=1+kp(modp2):kZ/pZCp, and take y,vU. In this way we indeed obtain a valid non-abelian group of order p3.

To summarize, the situation now is:

Of course this is not the end yet. In order to simplify it into exactly the same form as our previous answer, we need to reparametrize U as Cp. So we make another change of variables, setting:

y=1+bp,v=1+dp,b,dZ/pZ

Thus:

yu+x=(1+bp)u+xyv=(1+bp)(1+dp)1+(b+d)p(modp2)

And the latter corresponds to b+d(modp), so in fact the original formula has already transformed into:

(x,b)(u,d)=(x+(1+bp)u,b+d)

Finally, substituting back x=a,u=c gives:

(a,b)(c,d)=(a+(1+bp)c,b+d)

which is exactly the result obtained in the previous section. GPT’s comment on this was:

Your group of order p3 is a specialization of the textbook’s “affine-type” group law to a particular p-subgroup of the acting group; the two formulas differ only by coordinate order and reparametrization.

Are there any others?

In fact, for odd primes p, there are only 5 groups of order p3, of which three are abelian:

Cp3,Cp2×Cp,Cp×Cp×Cp

and two are non-abelian. Namely the Heisenberg group H:

H={(1ac01b001):a,b,cFp}

and the one we constructed:

Cp2Cp:(a,b)(c,d)=(a+c(1+bp),,b+d)

We can prove that for odd primes p, H is not isomorphic to Cp2Cp, because Cp2Cp has an element of order p2, namely (1,0). Now take XH and consider the order of X. Let

N=(0ac00b000)

Then:

Xp=(I+N)p=I+(p1)N+(p2)N2+(p3)N3+

Observe that for k3, Nk=0, so (p3)N3 and all subsequent terms vanish. Also, (p1)=p0(modp), so we obtain:

Xp=I+(p2)N2

Since (p2)=p(p1)2, we have p(p1)20(modp) if and only if p>2. In that case Xp=I, which shows that H is not isomorphic to Cp2Cp.

Finally, what happens when p=2? One can prove that both H and C22C2 are isomorphic to the D4 mentioned at the beginning of this post. Together with Q8, there are still five types in total. This shows that Q8 is really an outlier: it cannot be seen at a glance from the most naive semidirect product intuition.