Let S = {ai } where i = 1.2.....n
From commutative operations,
ai *a j = a j *ai … (i) ∀i, j = 1,2,3....n
where * represents a binary operation ∴ Number of distinct elements in S × S
i.e.,{ai}×{aj}i=1,2...nj=1,2...n subject to the condition (i)
= n{(a1,a1),(a1,a2 )......(a1,an ),
(a2, a2 ), (a2,a3),....(a2,an ),
...(an−1,an−1),(an−1,an ),(an ,an ) =n+(n−1)+(n−2)+....+2+1=2n(n+1) ∴ No. of commutative binary operations
= No. of functions f : S × S → S subject to (i) =n.n.n....2n(n+1)times=n2n(n+1)