I was wondering if there exists a semi-group in which some elements have a two-sided identity, while some others do not (they either have one-sided identities or no identities at all).
I came up with the 2-membered set $\{a,b\}$ with the binary operation defined as below, which seems to be an associative binary operator: $$a^2 = a, \quad b^2 = b, \quad ab = a, \quad ba = b$$ I do not know how to make sure this operator is associative (therefore making the structure a semi-group); however, assuming that this is indeed a semi-group fulfilling the condition I mentioned at the beginning of the post, are there any other semi-groups with a similar property in which the "local identities" are not just the elements being their own identities?