Let $g:N \to N$ be defined as
$g\left( {3n + 1} \right) = 3n + 2$
$g\left( {3n + 2} \right) = 3n + 3$
$g\left( {3n + 3} \right) = 3n + 1$, for all $n \ge 0$.
Then which of the following statement is true?
There exist an onto function $f:N \to N$ such that $f\circ g=f$.
There exist a one-one function $f:N \to N$ such that $f\circ g=f$.
$g\circ g\circ g=g$.
There exist a one-one function $f:N \to N$ such that $g\circ f=f$.
I tried to make $f(x)=x+1$, the first two condition will satisfy it but the third will will not do so as it will satisfy the condition $f(x)=x-2$.