1

If $f,g: \mathbb{N}\rightarrow\mathbb{N}$ and $f\circ g=\operatorname{id}_\mathbb{N}$

Is $f$ necessarily invertible?

I can't prove it formally, but also can't come up with two functions that contradict it.

Bernard
  • 175,478
fisoo
  • 11

1 Answers1

5

Take the function $$f:\Bbb{N}\to \Bbb{N} $$ by $f(1)=1, f(n)=n-1 \forall n >1$. Take $g(n)=n+1$