\[w(n+2)+n^{P}f(n)w(n+1)+n^{Q}g(n)w(n)=0,\]