First of all, if E is empty, then E cannot be endowed with a group structure for lack of a neutral element.
Consider E=∅ and let n∈N∗ denote the cardinality of E. Since the group (Z/nZ,+) has the same cardinality as E, there exists a bijection from E to Z/nZ, which we shall denote by φ.
We then consider the map τ:E×E⟶E defined as follows:
∀(x,y)∈E2,τ(x,y)=φ−1(φ(x)+φ(y)).We shall then verify that (E,τ) is a group.
Let 0 denote the neutral element of (Z/nZ,+), and set
e:=φ−1(0)∈E.
Let us first prove associativity. Let (x,y,z)∈E3. By definition of τ, we have
φ(τ(x,y))=φ(x)+φ(y). Therefore
φ(τ(τ(x,y),z))=φ(τ(x,y))+φ(z)=(φ(x)+φ(y))+φ(z)=φ(x)+(φ(y)+φ(z))=φ(x)+φ(τ(y,z))=φ(τ(x,τ(y,z))). As φ is injective, it follows that
τ(τ(x,y),z)=τ(x,τ(y,z)). Thus τ is associative.
Let us verify the existence of a neutral element. For every x∈E,
φ(τ(e,x))=φ(e)+φ(x)=0+φ(x)=φ(x), hence, by injectivity of φ,
τ(e,x)=x. Similarly,
φ(τ(x,e))=φ(x)+φ(e)=φ(x)+0=φ(x), whence
τ(x,e)=x. Thus e is a two-sided neutral element for τ.
Finally, let us verify the existence of an inverse for every element. Let x∈E. In the group (Z/nZ,+), the element φ(x) admits the additive inverse −φ(x). Set
y:=φ−1(−φ(x))∈E. Then
φ(τ(x,y))=φ(x)+φ(y)=φ(x)−φ(x)=0=φ(e), so, by injectivity of φ,
τ(x,y)=e. Similarly,
φ(τ(y,x))=φ(y)+φ(x)=−φ(x)+φ(x)=0=φ(e), whence
τ(y,x)=e. Thus every element of E admits a two-sided inverse for τ.
The three axioms are therefore satisfied; consequently, (E,τ) is a group (and it is even abelian).