What is the function $f(x)$ which is differentiable everywhere and $f(x-1)f(x-2)+1=f(x)$ and $f(1)=f(2)=1$ ?
I've been wondering about this problem for about $1 \frac{1}{2}$ years.
I don't know the tools to solve this problem. So, if you could show me how to find a solution, I would like that.
I found the values of $f(x)$ from $0$ to $10$:
$$0,1,1,2,3,7,22,155,3411,528706,1803416167,\dots,f(n)$$
I realized that at $f(-1)$ can't be found just using $f(x-1)f(x-2)+1=f(x)$ because $n\times f(0)=f(1)$ has infinite solutions. $f(-1)$ can't be zero because then $f(-2)$ wouldn't be defined because $n\times 0=-1$. So maybe if I add $f(x)$ must differentiable everywhere I could get an answer.
I will prove the
Statement
There is no continuous function $f : \mathbb{R} \rightarrow \mathbb{R}$ such that it satisfies following conditions:
Proof
Assume that there is such $f$. Let $\mathbb{U}$ be the set of zeros of $f$. $\mathbb{U}$ is nonemtpy. Let $u \in \mathbb{U}$. Then we have that $$ f\left(u - 2\right)f\left(u - 1\right) = -1$$ Meaning that both $f\left(u - 2\right)$ and $f\left(u - 1\right)$ are nonzero and have different signs. By continuity there exists $$\mathbb{U} \ni u' \in \left(u - 2, u - 1\right)$$ Thus we have shown that for any $x \in \mathbb{R}$ there is $u \in \mathbb{U}$ such $u < x$.
If $u \in \mathbb{U}$, then we have the following equalities: $$\begin{align*} f\left(u + 0\right) &= 0 \\ f\left(u + 1\right) &= 1 \\ f\left(u + 2\right) &= 1 \\ f\left(u + 3\right) &= 2 \\ f\left(u + n\right) &= a_{n + 1},\quad n \in \mathbb{N} \tag{1} \label{u+n} \end{align*}$$ , where $a_{n}$ defined here. From this sequence we only need to know that $a_{n}$ is non-decreasing and $$ \lim\limits_{n \rightarrow \infty} a_{n} = +\infty \tag{2} \label{a_n}$$ By the Weierstrass theorem $f$ reaches its maximum $\mathsf{M} \in \mathbb{R}$ on $\left[0, 1\right]$. By \eqref{a_n} we can find $n \in \mathbb{N}$ such that $a_{n} > \mathsf{M}$. Then we find $u \in \mathbb{U}$ and $m \in \mathbb{N}$ s.t. $-m \leq u \leq -m + 1 \leq -n$. It follows that $u + m \in \left[0, 1\right]$ and $m > n$. But by \eqref{u+n} $$\begin{align*} \mathsf{M} &\geq f\left(u + m\right) \\ &\geq a_{m + 1} \\ &\geq a_{n} \\ &> \mathsf{M} \end{align*}$$ This completes the proof.
It follows that there is no function you are looking for, if it's defined like $f : \mathbb{R} \rightarrow \mathbb{R}$.
P. S. English is not my native language. I apologize for any possible mistakes when writing the answer in English.