I'm trying to find an example for functions $f,g: \mathbb{N} \to \mathbb{N}$, so that $g(f(x)) = x + 4$, where $f$ is not surjective and $g$ is neither surjective nor injective.
I thought about $f(x) = x + 1$ and $g(x) = x + 3$ but then $g$ is injective...
Let $f(x)=x+4$ and $g(x)=x $ for any $x\geq5$ and $g(x)=1$ for $x<5$.