Let's suppose there are two functions $f:A\longrightarrow B$ and $g:B\longrightarrow B$, such that: $f(x)=f(g(f(x)))$ and $g(x)=g(f(g(x)))$.
I know this should be a trivial question, but what does this mean exactly? Is it possible that this is equivalent to saying that $g$ is an inverse for $f$?
Thanks for any kind of help!