For a sequence $\{D_k\}$, if we have: $$D_k=pD_{k+1}+qD_{k-1}+1$$
and we know that $D_0=D_N=0$. Where $p+q=1$, and $N$ is known. How do I solve it?
For a sequence $\{D_k\}$, if we have: $$D_k=pD_{k+1}+qD_{k-1}+1$$
and we know that $D_0=D_N=0$. Where $p+q=1$, and $N$ is known. How do I solve it?