I have the following recurrence relation: $$x_0=1 \\ x_n=p x_{n+1} + q x_{n-1} \text{ for }n=1,2,3,...$$
where $0<p=1-q<1$ and $0 \leq x_n \leq 1$.
Edit: Sorry for the lack of context. But I didn't realized that this was needed. In the end, I'm only interested in the minimal solution $x=(x_0,x_1,...)$.
I'm already doing math for some time, but I can't remember ever having to solve a recurrence relation, so I would like to learn a little bit more about this.
Of course, I would appreciate if someone can give a full solution to this one, but I'm also glad if someone can learn me some kind of method to solve recurrence relation like this (or some link where this is explained).
Hint. Try first to get elementary solutions of the form $$ x_n=r^n \tag1$$ for real numbers $r$.
Let's plug $(1)$ in $$x_0=1 \\ x_n=p x_{n+1} + q x_{n-1}$$ we get $$r^n=p \:r^{n+1} + q \:r^{n-1},\quad n\geq1$$ $$r^{n-1}(p \:r^2 - r+ q)=0 ,\quad n\geq1$$ If you solve this $$p \:r^2 - r+ q=0 $$ Then we have to prove that we have got all solutions in that way ...
I hope this can help.