The number of possible commutative binary operations that can be defined on a set of n elements (for a given n) is ___________.

GATE 1989 · Discrete Mathematics · Binary Operation · medium

Answer: n^(n(n+1)/2) commutative binary operations

  1. Count the freely chosen cells: the n diagonal cells (a_i * a_i) plus the C(n,2) upper-triangle cells are free; the lower triangle is forced equal to its mirror by a*b = b*a
  2. Multiply n choices over all free cells: each of the n(n+1)/2 free cells independently takes any of n values, so by the Product Rule the total is n raised to that exponent