If $(1+px+x^2)^n=1+a_{1}x+a_{2} x^2+....+a_{2n}x^{2n}$, then prove that $(np-pr)a_{r}=(r+1)a_{r+1}+(r-1-2n)a_{r-1}$ for $1<r<2n$
My try:
I tried putting $r=2$ and solved the problem and verfied the answer.
Then I tried to this for general
First I did was $(np-pr)=\dfrac{(r+1)a_{r+1}}{a_{r}}+\dfrac{(r-1-2n)a_{r-1}}{a_r}$, And i tried to solve coefficient of $x^{r+1}$ divided by coefficeint of $x^r$ but i lead me nowhere.
Any help here is appereciated.
Same kind of problem has been asked here For $(1+x+x^2)^n = A_0 + A_1x + ... + A_{2n}x^{2n}$, prove that $(n-r)A_r + (2n -r+1)A_{r-1} = (r+1)A_{r+1}$ but he is skipping some steps so I can't understand he is saying use induction and I've not studied indunction yet