I'm having a hard time finding an explanation how to solve the following problem.
Given the recurrence relation $a_{n+1} = 2 a_n -1$ with $a_0=3$. What is $a_n$ when expressed as an explicit function of $n$?
Supposedly the correct answer is $a_n = 2^{n+1}+1$. But what is the step by step approach to arrive at this solution? All of the resources I've found begin with a recurrence relation in the form an = (some expression) but how to handle this type of problem in the form an+1 = (some expression) ?
Is it a matter of moving the variable to the other side and then solving iteratively? Or is there some clever/magic approach we should use here? Super appreciate if anyone can detail the steps to take to arrive at the correct solution.
Thanks in advance!
First way
Verify by induction that the provided solution is the right one...
Second way
If you don't know the solution. Take $b_n = a_n +c$ in order to get rid of the term $-1$ in the recurrence relation. That gives
$$b_{n+1}- c = 2 (b_n-c) -1$$ and therefore $b_{n+1} = 2 b_n$ if $c=-1$. The relation $b_{n+1} = 2b_n$ is easy to solve in $b_n = 2^n b_0$ and finally $a_n = 2^n (a_0-1) + 1 = 2^{n+1} + 1$ knowing that $a_0=3$.
This solution avoids guessing!