Let $f:\mathbb{R}\to\mathbb{R}$ be a function such that $$f\big(f(x)\big)=2^x-1$$ for all $x\in\mathbb{R}$. Determine the value of $f(0)+f(1)$.
My approach: Let $a_1=x$ and $a_2=f(x)$. Then $a_3=f(f(x))=f(a_2)$, and continue the process $a_n=f(a_{n-1})$ hence $f(a_n)=f(f(a_{n-1}))=2^{a_{n-1}}-1=a_{n+1}$. Now how can I continue to get the result? Or is this recurrence approach is not good here?
Note : It is easy to verify that $f$ is injective.
Set $x\to f(x)$ to get:
$$f(2^x-1)=2^{f(x)}-1$$
Therefore (setting $x=0$ and $x=1$): $f(1)=2^{f(1)}-1$ and $f(0)=2^{f(0)}-1$. The equation $2^x=x+1$ has two roots $0$ and $1$, so, since $f$ is injective, we must have:
$$\{f(0),f(1)\}=\{0,1\}$$
The sum is therefore $1$.