GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many binary operations on {a, b, c} are commutative, associative and have an identity element?

  1. A. 81
  2. B. 18
  3. C. 27
  4. D. 36

Correct answer: C. 27

Fix the identity e (3 ways); only x·x, y·y, x·y for the other two elements x, y are free. If {x, y} is closed, the restriction must be a commutative semigroup on 2 elements: constant x, constant y, 'min', 'max', and the two Z₂-like tables, 6 in all. If some product equals e we get ℤ₃, or ℤ₂ = {e, x} with y absorbing, or {e, y} with x absorbing: 3. Per identity 9, total 27 (81 without associativity).

More Discrete Mathematics questions

Exams that ask this topic