Prove That $f(n+f(n))=n$

98 Views Asked by At

if $f:\mathbb{N}\rightarrow\mathbb{N}$ is a function such that $f(1)=1$ and $$f(n)=n-f(f(n-1))\,\,\: \forall n \ge 2$$ Prove That $$f(n+f(n))=n$$

1

There are 1 best solutions below

0
On

Prove by induction that the $k-1 + f(k-1) < n \le k+ f(k)$ contains one or two elements with image $k$.