How many binary operations with a zero element can be defined on a set $M$ with $n$ elements in it

abstract-algebrabinary operationscombinatorics

Let's say I have a set $M$ of $n$ elements, with $n \in \mathbb{N}^*$. I have to answer the following question:

How many binary operations with a zero element can be defined on $M$?

I know that $*$ is a binary operation on $M$ only if $\forall x, y \in M$ we have that $x * y \in M$. I also know that the binary operation $*$ has a zero element on $M$ only if there is an element $e \in M$ such that $x * e = e * x = x$, $\forall x \in M$.

I don't know how to use this information to find the answer to the question. How can I find how many binary operations with a zero element can be defined on $M$? I found a similar question here, but it's simply about the number of binary operations, without requiring a zero element. How does the necessity for a zero element change the answer?

Best Answer

Hint: Can you prove that there can only be one zero element? How many ways are there to pick the zero element? How many results of the operation are determined once you pick the zero element? Then use the question you linked to for the rest.