The way you've stated is a bit too simplistic. We aren't interested in making extremely generic statements like "The set can have one and only one operation defined on it." when we're defining algebraic structures.
If we could PROVE that it can have one and only one operation defined on it, then that would be neat. But we don't say that a priori.
Here's the formal definition of a group.
Let $G$ be a set and $\circ: G \times G \to G$ be a function. Then, the pair $(G, \circ)$ is called a group iff the following statements hold:
$\forall a,b,c \in G: a \circ (b \circ c) = (a \circ b) \circ c$
$\exists e \in G: \forall a \in G: a \circ e = a = e \circ a$
$\forall a \in G: \exists b \in G: a \circ b = e = b \circ a$
That's it. So, for instance, $(\mathbb{Z},+)$ is a group, where we are careful in specifying that $+$ is the usual addition on the integers.
Now, this doesn't imply that a multiplication operation cannot be defined on $\mathbb{Z}$. You and I multiply integers on a daily basis and certainly, we get integers when we multiply integers with integers. In that sense, we say that $\mathbb{Z}$ is closed under multiplication. However, we note that $(\mathbb{Z},\cdot)$ is NOT a group.
We can see that not all elements of $\mathbb{Z}$ have a multiplicative inverse that is contained in $\mathbb{Z}$. For example, we note that $1 \in \mathbb{Z}$ is the identity element BUT:
$$2 \cdot \frac{1}{2} = 1 = \frac{1}{2} \cdot 1$$
so $\frac{1}{2}$ is an inverse of $2$ but it isn't actually an integer. So, $(\mathbb{Z}, \cdot)$ fails to satisfy the third condition and hence, it isn't a group.
2
does not have its inverse. number1
has its inverse. so (Z,×) is not a group – overexchange Jul 22 '20 at 00:38