g:N→Ng(3n+1)=3n+2g(3n+2)=3n+3g(3n+3)=3n+1g(x)=x+1x+1x−2x=3k+1x=3k+2x=3k+3g(g(x))=x+2x−1x−1x=3k+1x=3k+2x=3k+3g(g(g(x)))=xxxx=3k+1x=3k+2x=3k+3 If f:N→N,f is a one-one function such thatf(g(x))=f(x)rg(x)=x, which is not the caseIf ff:N→Nf is an onto function such that f(g(x))=f(x), one possibility is f(x)=nnnx=3n+1x=3n+2x=3n+3n∈N0. Here f(x) is onto, also f(g(x))=f(x)∀x∈N