In abstract algebra, a semigroup with three elements is an objectconsisting of three elements and an associative operation defined on them. The basic example would be the three integers0, 1, and −1, together with the operation of multiplication. Multiplication of integers is associative, and the product of any two of these three integers is again one of these three integers. There are 18inequivalentways to define an associative operation on three elements: while there are, altogether, a total of 39 = 19683 different binary operations that can be defined, only 113 of these are associative, and many of these are isomorphic or antiisomorphic so that there are essentially only 18 possibilities. One of these is C3, the cyclic group with three elements. The others all have a semigroup with two elements as subsemigroups. In the example above, the set under multiplication contains both and as subsemigroups. Six of these are bands, meaning that all three elements are idempotent, so that the product of any element with itself is itself again. Two of these bands are commutative, thereforesemilattices. The other four come in anti-isomorphic pairs. One of these non-commutative bands results from adjoining an identity element to LO2, the left zero semigroup with two elements. It is sometimes called the flip-flop monoid, referring to flip-flop circuits used in electronics: the three elements can be described as "set", "reset", and "do nothing". This semigroup occurs in the Krohn–Rhodes decomposition of finite semigroups. The irreducible elements in this decomposition are the finite simple groups plus this three-element semigroup, and its subsemigroups. There are two cyclic semigroups, one described by the equation x4 = x3, which has O2, the null semigroup with two elements, as a subsemigroup. The other is described by x4 = x2 and has C2, the group with two elements, as a subgroup. There are seven other non-cyclic non-band commutative semigroups, including the initial example of, and O3, the null semigroup with three elements. There are also two other anti-isomorphic pairs of non-commutative non-band semigroups.