A binary operation ∗ on a set S assigns to each ordered pair (a,b) with a,b∈S an element a∗b. It is closed on S if a∗b∈S for all a,b∈S (defining a binary operation as a map S×S→S builds closure in). Check closure first; many failures happen here (for example, subtraction on {1,2,3,…}, since 1−2=−1). Conventions used below: e is the identity, ∣G∣ is the number of elements of G, Zn={0,1,…,n−1} under addition modulo n, ak=a∗a∗⋯∗a (k factors) for k≥1, a0=e and a−k=(a−1)k. In additive notation ak is written ka and e is written 0.
Operation given by a formula. To find the identity, solve a∗e=a for e, confirm that e does not depend on a and lies in S, and check e∗a=a too unless ∗ is commutative. To find an inverse, solve a∗x=e for x, check x∈S, and check x∗a=e too unless ∗ is commutative. One counterexample disproves a property; proving one needs an argument for all elements.
Operation given by a table (rows and columns listed in the same order). Closure: every entry belongs to the set. Commutativity: the table is symmetric about the main diagonal. Identity: one element e whose row repeats the header row and whose column repeats the header column. Inverses: for each element a some b has a∗b=b∗a=e, so the e entries sit in symmetric positions and every row and column contains e. Associativity cannot be read off the table; it must be checked on triples or known from how the operation is defined.
NUMBER OF BINARY OPERATIONS ON AN N-ELEMENT SET
nn2 in all,nn(n+1)/2 commutative
A binary operation on a set of n elements is a filled n×n table, each of its n2 entries chosen from the n elements. A commutative one is fixed by the n(n+1)/2 entries on and above the main diagonal. For n=2: 16 in all, 8 commutative.