Number of binary operation on a set of 2 elements is 2^(2*2)=16
.
Number of associative binary operation on that set is only 8.
Number of binary operation on a set of 3 elements is 3^(3*3)=19683.
Number of associative binary operation on that set is only 113.
How to know how many associative binary operations there are on a set of n elements?
Also in order to get all this 113 operations and write into file, it is necessary to write a program.
if I will try to get all 19683 operations and then check it`s associative property "a*(bc)==(ab)*c" for all 19683 operations, this will work but this should take a long time for n=4 elements!
How to write an efficient algorithm to solve this task?
Please help me!