Suppose we have a non-empty set $X$ with an associative binary operation, so that for all $x \in X$ there exists a unique $x'$ such that $xx'x=x$. Prove the set under this operation is a group.
Of course, associativity is already given, and unique inverses are obvious, but I have no idea how to go about showing an identity element exists, nor how to show the set is closed with respect to the operation. How can one go about this?