Discrete mathematics solving recurrence relation with param

37 Views Asked by At

I was given this equation to solve and I'm without any idea how to work the parameter which is given as p in the equation and therefore I can't figure out what the correct solution is. Any help would be very much appreciated.

$$a_{n+2}=pa_{n+1}+(1-p)a_n$$ where $p\in(0,1)\setminus\{1/2\}$ is a given parameter.