Let M be a commutative monoid and set $M^+=$ {$a \in M : a^k$ is idempotent for some $k\ge 1$}. Prove that $M^+$ is a monoid with the binary operation induced from M.
I have proven $M^+$ is closed and that it has an identity but I am now stuck on proving it is associative. Is it enough to show that $(a*b)*c=a*(b*c)$? Or do I have to show it using the $k$'s?
If you prove that $M^+$ has an identity and is closed under the binary operation, then you are done.