Define a binary operation * on the set {0, 1, 2, 3, 4, 5} as

Show that zero is the identity for this operation and each element a of the set is invertible with 6 – a being the inverse of a.
We construct the composition table as follows :
Table
* |
0 |
1 |
2 |
3 |
4 |
5 |
0 |
0 |
1 |
2 |
3 |
4 |
5 |
1 |
1 |
2 |
3 |
4 |
5 |
0 |
2 |
2 |
3 |
4 |
5 |
0 |
1 |
3 |
3 |
4 |
5 |
0 |
1 |
2 |
4 |
4 |
5 |
0 |
1 |
2 |
3 |
5 |
5 |
0 |
1 |
2 |
3 |
4 |
From this table, it is clear that
0 * 0 = 0, 1 * 0 = 0 * 1 = 1, 2 * 0 = 0 * 2 = 2, 3 * 0 = 0 * 3 = 3,
4 * 0 = 0 * 4 = 4 and 0 * 5 = 5 * 0 = 5.
0 is the identity element.
Also for each a ≠ 0 in {0, 1, 2, 3, 4, 5 },
6 – a ∈ {0, 1,2, 3, 4, 5} and a * (6 – a) = a + (6 – a) – 6 = 0.
∴ 6 – a is inverse of a for each a ≠ 0 in the set {0, 1, 2, 3, 4, 5} Also 0 * 0 = 0, i.e., 0 is inverse of itself.