Let q=pfq=p^f, with pp prime and f≥1f\geq1 an integer, and let Fq\mathbb F_q be the . The finite Heisenberg group H3(Fq)H_3(\mathbb F_q) is Fq3×Fq3×Fq\mathbb F_q^3\times\mathbb F_q^3\times\mathbb F_q, with multiplication

(x,y,z)(x′,y′,z′)=(x+x′,y+y′,z+z′+x⋅y′),(x,y,z)(x',y',z')=(x+x',y+y',z+z'+x\cdot y'),

where x⋅y′x\cdot y' is the usual coordinate dot product. This formula works in every characteristic.

Order and group law

The order is q7q^7, the identity is (0,0,0)(0,0,0), and the inverse of (x,y,z)(x,y,z) is (−x,−y,−z+x⋅y)(-x,-y,-z+x\cdot y). Bilinearity of the dot product verifies associativity.

Center and nonsimplicity

Using [g,h]=ghg−1h−1[g,h]=ghg^{-1}h^{-1}, the commutator is

[(x,y,z),(x′,y′,z′)]=(0,0,x⋅y′−x′⋅y).[(x,y,z),(x',y',z')]=(0,0,x\cdot y'-x'\cdot y).

The center is exactly {(0,0,z):z∈Fq}\{(0,0,z):z\in\mathbb F_q\}: commuting with every (x′,y′,0)(x',y',0) forces both x=0x=0 and y=0y=0. It is nontrivial and proper, so the group is not simple. The displayed commutators fill the center; consequently the group is nonabelian of nilpotency class two.