Simple example of idempotent but not commutative nor associative binary operator?

303 Views Asked by At

Is there a simple example of a binary operation that is idempotent, but not commutative nor associative?

1

There are 1 best solutions below

0
On BEST ANSWER

How about $a\oplus b=pa+(1-p)b$ for $a,b\in\mathbb R$ with $\{0,\frac12,1\}\not\ni p\in\mathbb R$?