https://www.youtube.com/watch?v=7mhvA5L7KqY&ab_channel=TrevTutor
So basically, I was watching video above which is on recurrence relations and I had a question about this statement (which is at timestamp 5:21):
$$a_n=a_{n-1}+6a_{n-2}\Longrightarrow a_n=\alpha(-2)^n+\beta(3)^n.$$
I understand how he got the $(-2)^n$ and $(3)^n$, but not about how he is adding them and then multiplying them by the variables $\alpha$ and $\beta$. He said that there is a proof online about why there is always going to be an $\alpha$ and a $\beta$ that will always make this statement true, but I wasn't able to find it and I was hoping that somebody could give me a step by step explanation about how this is. I was also wondering about the general case for getting a formula for recurrence relations in this form.
Note: I read somewhere that you can derive this from generating functions, but I don't have a strong background in them, so I was wondering if there is another way to derive the relation.
Let $px^2+qx+r=0$ has roots as $a,b$, then $$\alpha a^n(pa^2+qa+r)=0$$ and $$\beta b^n(pb^2+qb+r)=0$$ add them to get $$p(\alpha a^{n+2}+\beta b^{n+2})+q(\alpha a^{n+1}+ \beta b^{n+1})+(\alpha a^n+ \beta b^n)=0$$ Now define $A_n=\alpha a^n +\beta b^n$ So we get $$pA_{n+2}+qA_{n+1}+rA_n=0$$ This prvides a simple understandinf of what is going on here.