DG1, DG4 - Binary operations and Cayley tables
What changes when an operation acts on a particular set rather than on any numbers you like? You will learn what makes a rule a binary operation, calculate with modular arithmetic and matrices, and construct and read Cayley tables without reversing the operands.
Closure and table construction
Can a rule combine two allowed inputs and produce a forbidden answer? Take the set . Adding its elements can give , which is outside . Multiplying them always gives or . The set matters as much as the rule.
Binary operation and closure
A binary operation on a set assigns exactly one element of to every ordered pair of elements of . The set is closed under the rule when every such output belongs to .
“Binary” means two inputs, not base-two arithmetic. A familiar rule may fail on a chosen set: division is not a binary operation on the real numbers because division by zero is undefined. Removing zero makes division defined for every pair of nonzero real numbers, with a nonzero real result.
A Cayley table records every output for a finite set. We use the row heading as the first operand and the column heading as the second. Keep the printed order of the headings; do not rearrange entries by size.
Worked example 1: finding a failure of closure
Question. Does ordinary addition define a binary operation on ? Display all four outputs.
Plan. Use each element as a row input and combine it with each column input.
For example, row , column contains . None of these outputs belongs to .
Answer. No: is not closed under addition. The displayed array records the failure; it is not a Cayley table for a binary operation on .
Check. The single pair already gives , independently confirming the conclusion.
Keep the set and its heading order, but change only the rule to multiplication. This time every cell must stay in the set.
Worked example 2: constructing a closed table
Question. Construct the Cayley table for ordinary multiplication on and establish closure.
Plan. Multiply the row input by the column input in each of the four cells.
The diagonal entries are and ; the other products are .
Answer. The table above is complete. Every output is in , and every ordered pair has been checked, so multiplication is a binary operation on .
Check. A product of two signs is positive when the signs match and negative otherwise. This reproduces all four entries without recalculating the table row by row.
A single forbidden output disproves closure; proving closure needs every pair, or a general argument covering them all.
Watch out
Checking that a rule works for one pair does not establish closure. Check all pairs in a finite table, and check that every required output is defined as well as in the set.
Try a set with one extra boundary element.
Modular arithmetic
A clock returns to its starting label after a full circuit. Modular arithmetic does the same with integer labels: after calculating, replace the result by its remainder.
For an integer , use the representatives . Write when is a multiple of . For example, , because . This congruence is a relation between integers; an operation such as returns one chosen representative.
Addition and multiplication modulo n
On ,
Both outputs lie in . These definitions and notation are not supplied in the examination formula booklet.
The subscript tells you the modulus; it does not mean multiply or add . A remainder is at least zero and less than . For a negative integer, add a suitable multiple of : , so its chosen representative is , not .
Worked example 3: addition modulo 5
Question. Find , and construct the row headed , with columns .
Plan. Add ordinarily, then remove whole multiples of .
The row is
For example, the column headed gives , whose remainder is .
Answer. ; the row is .
Check. Each output differs from its ordinary sum by or , and each lies between and .
Keep the same operands, modulus and heading order. Changing addition to multiplication changes what you calculate before reducing.
Worked example 4: multiplication modulo 5
Question. Find , and construct the row headed , with columns .
Plan. Multiply ordinarily, then replace each product by its remainder modulo .
The ordinary products are , giving
Answer. ; the row is .
Check. Since , multiplication by reverses the sign of each column label modulo , giving the same row.
A smaller chosen set may fail closure even though the full residue set is closed. For instance, is not closed under , because is excluded.
Watch out
Wrong: . The ordinary product is an intermediate result. The operation's output is the representative .
Apply the same two-stage process with a new modulus.
Matrix multiplication as an operation
You already know how to multiply matrices: take a row of the first matrix against a column of the second. A set of matrices can be closed under that multiplication, just as a set of integers can.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account